Arun K. Khan wrote:
# tar -cvjf /data2/sys-backup.tar.bz2 / --exclude-from=/exclude-file
/exclude_file is a text file with (directories space separated on one line): /home /data1 /data2
Specify each on separate line (not separated by space).
Amish.
On Sat, 2006-06-03 at 21:11 +0530, Amish Mehta wrote:
Arun K. Khan wrote:
# tar -cvjf /data2/sys-backup.tar.bz2 / --exclude-from=/exclude-file
/exclude_file is a text file with (directories space separated on one line): /home /data1 /data2
Specify each on separate line (not separated by space).
Does it work for you (version of tar)?
For me no effect; tar still archives the directories listed in the file. I also tried the option --exclude="files" with "files" being space/comma separated list - same problem.
Eventually, took the inverse approach i.e. list ALL the dirs that I wanted to back up on the CLI.
-- Arun Khan (knura at yahoo dot com) You can tune a piano, but you can't tuna fish.