Date: Mon, 30 Sep 2002 16:25:01 +0400 From: =?Windows-1251?B?wOvl6vHg7eTwIM/u7+ru4g==?= <voodoo_alex@mail.ru> To: freebsd-hackers@FreeBSD.org Subject: Re: using tar --exclude in FreeBSD.. Message-ID: <5626682897.20020930162501@mail.ru>
next in thread | raw e-mail | index | archive | help
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:voodoo_alex@mail.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5626682897.20020930162501>