At Thu, 7 Jan 2010 07:06:11 -0800 (PST) CentOS mailing list <centos@centos.org> 
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@centos.org
> 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
hel...@deepsoft.com       -- http://www.deepsoft.com/ModelRailroadSystem/
                      
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to