Thanks for the reply, although that doesn't seem to work either.
Actually, it would partially work, but I want to be able to exclude
paths and everything below it. For instance, I would like to exclude
home/me/.netscape/cache, but tar seems to only match file names ignoring
the paths. According to some info on bugzilla, this seems to be a
"feature" for POSIX compliance. That explains why it works on the "var"
and "proc" directories directly off root. I did upgrade to the latest
tar from rawhide, but nothing changed in its behavior.
One choice might be to write a script to determine all of the filenames
in directories that I desire to exclude, but if file and/or directory
foo is in two places, it would it both times.
I did get close to want I want by just naming my vmware virtual disk
file in the exclude list, but it seems like something should do what I
want.
Thanks,
Kirk
[snip]
> 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 /
>
[snip]
>
> 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
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list