Page is a not externally linkable
- Hardware and OS Related Technologies
-- Linux, Unix, and *nix like Operating Systems
---- need help with tar to backup entire folders


walkman - 11:16 pm on Nov 23, 2007 (gmt 0)


thanks! Prob solved. Not sure why it stopped working but ...

One more problem: I also need to exclude some folders for a more comprehensive backup. Bascially I need to back up /home minus a few (huge and redundant) folders. Sort of:
tar -cf --exclude "/home/cronolog"--exclude "/home/site2/backup" --exclude "/home/site3/backup" /home ¦ gzip -c > $dir/$day/all.tar.gz

I had it as tar -cf $dir/$day/all.tar.gz
--exclude "/home/cronolog"--exclude "/home/site2/backup" --exclude "/home/site3/backup" /home
and it worked but there was no gzip, making the archives too large. Also, using nano the line is too long and this resulted in problems (too many exclusions add up).

how do I do this?

Thanks again,


Thread source:: http://www.webmasterworld.com/linux/3512016.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com