Re: [CentOS] tar exclude command

2010-01-09 Thread Mogens Kjaer
On 01/07/2010 04:53 PM, "Fábio Jr." wrote: ... > Yes, it works, but it didn't create the proc folder inside the tar > folder tree. Example: Can't you use the --one-file-system option to prevent tar from descending into the proc folder? Mogens -- Mogens Kjaer, Carlsberg A/S, Computer Department

Re: [CentOS] tar exclude command

2010-01-07 Thread Fábio Jr.
Hello, > > tar -cv --exclude '/var/named/chroot/proc/*' -zf backup.tar.gz /var/named > I think this is the best way to use wildcards in expressions to avoid problems. ;) > > > tar -cv --exclude /var/named/chroot/proc -zf backup.tar.gz /var/named > Yes, it works, but it didn't create the proc

Re: [CentOS] tar exclude command

2010-01-07 Thread Robert Heller
At Thu, 7 Jan 2010 07:06:11 -0800 (PST) CentOS mailing list 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/chro

Re: [CentOS] tar exclude command

2010-01-07 Thread Luciano Rocha
On Thu, Jan 07, 2010 at 07:06:11AM -0800, adrian kok wrote: > Hi > > I have problem in tar command > > Can you help? > > tar -cv --exclude /var/named/chroot/proc/* -zf backup.tar.gz /var/named You must escape the *, so that shell doesn't convert the command to: tar -cv --exclude /var/named/c

Re: [CentOS] tar exclude command

2010-01-07 Thread Ceg Ryan
Try tar --exclude=/var/named/chroot/proc/* -zcvf backup.tar.gz /var/named On Thu, Jan 7, 2010 at 11:06 PM, adrian kok 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 >

[CentOS] tar exclude command

2010-01-07 Thread adrian kok
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 Thank you Send instant messages