Hello Andrew,

Monday, September 30, 2002, 4:14:42 PM, you wrote:

AN> Hi,

AN> I'm having trouble using tar with simple exclusion
AN> rules..  I'd like to be able to run something like this:

AN> tar cfvzp etc-backup.tgz /etc/

AN> but exclude all *.gz files. I can only the --exclude syntax
AN> of tar if I leave off the -vzp options.  Why doesn't the
AN> following work?

AN> tar cfvzp --exclude="*.gz" usr-backup.tgz /etc/

Try to use:
tar --exclude="*.gz" cvzpf usr-backup.tgz /etc/

(hint: "f" - argument to pass archive file name to tar programm
read man tar useful ;)

-- 
Best regards,
voodoo                            mailto:[EMAIL PROTECTED]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
  • ... Andrew Nelson
    • ... Peter Pentchev
    • Александр Попков

Reply via email to