Re: tar exclude command

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



At Thu, 7 Jan 2010 07:06:11 -0800 (PST) CentOS mailing list <centos@xxxxxxxxxx> wrote:

> 
> Hi 
> 
> I have problem in tar command
> 
> Can you help?
> 
> tar -cv --exclude /var/named/chroot/proc/* -zf backup.tar.gz /var/named 
> 
> /var/named/chroot/proc/net/route
> /var/named/chroot/proc/net/udp
> /var/named/chroot/proc/net/tcp
> tar: Error exit delayed from previous errors

"It is almost *always* wrong to pass an unquoted wildcard to tar."

Try this:

tar -cv --exclude '/var/named/chroot/proc/*' -zf backup.tar.gz /var/named

Although I suspect that:

tar -cv --exclude /var/named/chroot/proc -zf backup.tar.gz /var/named

will also work.

> 
> Thank you
> 
> Send instant messages to your online friends http://uk.messenger.yahoo.com 
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
> 
>            

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
heller@xxxxxxxxxxxx       -- http://www.deepsoft.com/ModelRailroadSystem/
                      
_______________________________________________
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