Code:
#!/bin/ksh
cd /fss/fi
today=`date "+%Y%m%d"`
tar cvf $today.tar *
mv $today.tar .s11003232sz.net # You have to fix up this line.
Restore:
Code:
#!/bin/ksh
echo -e "Enter Date to Restore\c"
read date
cd /fss/fi
mv .s11003232sz.net/$date.tar work.tar #and this line
tar xvf work.tar
tar will automatically copy a directory and all its contents, you do not need to use find.
And you may or may not need the -e flag on the echo command.