Re: tar exclude question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



-----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-----
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux