Hi all, Just writing my first backup procedure and wondered on a few points: Does this check the directory /home/jenny/cwp exists?
if [ -f /home/jenny/cwp/ ]; then
Also, is there a standard place backups are filed? I've created a directory called backups for now in my home directory, and will copy the cwp/ directory into the backups directory, but it would be far neater to somehow roll the directory up into one neat zipped tarball on a daily basis and stuff it in a special backup place. At the mo I have
cp -r /home/jenny/cwp/* /home/jenny/cwpbackup/
but could I have something like
tar zcf /home/jenny/cwp > /backups/cwpbak.tar
? Thanks all, jenny.