If I understand you correctly, this should help.  This was a suggestions
from someone else on this list about a year ago.  It works for me.  Good
luck,

********************

Here is one quick and dirty way to do that.. make a file and call it
something like "backup.exclude".  Put in this file lines like this:

/bin/tar
/ash/*
/ash2/*
/dallas/*
/proc/*


Then do your tar command line as follows:

tar -X /wherever/backup.exclude -cvf /dev/tapedevice /

That should do it for you.

***********************





Kirk Taylor wrote:
> 
> 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



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

Reply via email to