Re: Backups Using tar: which directories to exclude?
ok, so I gave it a shot:
Code:
root@HAL-ubuntu:/# tar -cvvfjp sysbackup.tar.bz2 --exclude='/proc/*' --exclude='/sys/*' --exclude='/etc/fstab' --exclude='/media/*' --exclude='/dev/*' --exclude='/mnt/*' --exclude='/etc/grub.conf' --exclude='/var/run' --exclude='/2.5sata/*' --exclude='/home/rgillette/*' --exclude='/sysbackup.tar.bz2' /
I end up with a file called jp, and the last line of the very verbose output is something along the lines of Error: exited from previous errors.
Judging by the size of the jp file, it is the right size, but the wrong name. I'm using the -j and -p options to use bzip2 and keep permissions.
Jaunty Jackalope, because we feel bad for that other guy from Full House.
Bookmarks