[CentOS] tar exclude question
Luigi Rosa
lists at luigirosa.com
Tue Mar 15 09:37:57 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Rainer Traut said the following on 15/03/11 10:25:
> This always sends me an unwanted email with:
> tar: Removing leading `/' from member names
Redirect the stdout/stderr to some file:
tar cvzf /mnt/mybackup.tgz /foo /bar > /var/log/backup 2> /var/log/backuperrors
> Because the exclude pattern matches under dir1 my important File is not
> backed up. The problem is, I cannot specify the exclude pattern to match
> only /tmp/foo/dir2 , can I?
It's a matter of personal taste, but I find more useful the -X (or
- --exclude-from) option
Ciao,
luigi
- --
/
+--[Luigi Rosa]--
\
You cannot achieve the impossible without attempting the absurd.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk1/M3EACgkQ3kWu7Tfl6ZQuRQCgk7Qy9TZPmBCTaDhGlUTogABg
kF0AoJdhL41XdA0UUrlUfhHmXi6umRSF
=IvTi
-----END PGP SIGNATURE-----
More information about the CentOS
mailing list