Arun K. Khan wrote:
> >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)?

My verions of tar (GNU tar) 1.13.25 --- packaged with RH9

Command I run is
tar czvp -X bkpexclude base libs demo website > bkp.`date +%Y%m%d%H%M%S`.tgz

base, libs, demo, website are directories to backup

bkpexclude contains
base/bin
demo/bin
website/notimp

Amish.
-- 
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to