I really don't know what I am doing so I am looking for some help...
Goal: backup /public_html but exclude directory A , gzip it and move it from the root directory to directory B.
( have very many, very large sermons in mp3 format in directory A which I don't want backed up as I already have them locally.)
Attempted:
Code:
date=`date -I` ; tar -zcf backup_$date.tgz ./public_html --exclude=/home/username/public_html/directory A > /home/username/directory B/backup_$date.tgz
Result: makes a bu and puts it in the root dir, but does not exclude dir A. Also puts a bu file with the same name in dir B, but it is empty. I don't know for sure that dir A is not being backed up, but the bu file is huge (+800MB) and this site is just a joomla site with a lot of media files in dir A - it would not be so big if it was excluding dir a. I think the job is timing out before it completes since attempts to unpack the tgz file halts before done saying it is broken. , but a test on another account w/o large files showed the "excluded" folder is indeed being backed up.
If someone could explain what I am doing wrong I would appreciate it.
Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
Posted:
Tue Feb 01, 2011 8:41 pm
Oh my. That is not only a tiring process, but a sad day to boot I'm sure. However, knowing you, you've "trained her up in the way she should go"... Congratulations as well as my sympathies my friend.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum