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/chroot/proc/1 /var/named/chroot/proc/2 ...
Use: tar -cv --exclude /var/named/chroot/proc/* -zf backup.tar.gz /var/named
Or just --exclude proc?