I am trying to back up /boot, /home and /etc using tar.  I am having a
problem determining the options that I need to exclude files.

I execute  tar -v -cIpf /mnt/backup/test.tar.bz2 / -X exclude.list.test
> tar.log

What I want to do is exclude my Netscape cache and my VmWare directory. 
However, tar seems to only match filenames, where I want to exclude
relative paths.  For instance, I have the following in my exclude file:

home/me/.netscape/cache
home/me/vmware/win98

but those options to not work.  If I just use "cache", it will eliminate
*all* directories that are named cache, not necessarily just those in
the .netscape directory.  

So, is there a way to create the backup file that I need using tar and
relative references instead of string matching, or should I try
something else?

#rpm -q tar
tar-1.13.17-8

Thanks in advance,
Kirk



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to