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

Re: quick tar question



> I'm trying to tar up the contents of an OpenBSD system and I wanted to
> know if there's a way to make tar skip a directory or a file
> 
> For instance:
> 
> > tar czfv /tmp/backup.tgz /
> 
> I want to skip that /tmp directory so it doesn't spit out an error when
> it's finished. 
> 
> Any ideas?  

	find / -path '/tmp/backup.tgz' -prune -o -print | cpio -ozv -H tar -O bacckup.tgz

David S.