Re: how can I "find xyz | xargs tar" ... like gtar

2007-09-23 Thread Marc Espie
On Sun, Sep 23, 2007 at 08:53:13PM +0200, Didier Wiroth wrote: > Using "find ... | xargs tar ..." does not work as expected, as it looks like > xargs invokes the tar command multiple times. man xargs You probably want to override the limit with xargs -n. But actually, since tar is recursive, y

Re: how can I "find xyz | xargs tar" ... like gtar

2007-09-23 Thread Han Boetes
Well that's not so hard... ~/.tmp% ls -la total 2190 drwx-- 3 han users512 Sep 23 21:19 . drwx-- 18 han users 1536 Sep 23 21:20 .. -rwxr-xr-x 1 han users 908581 Sep 7 18:55 configure -rwxr-xr-x 1 han users 908228 Sep 7 18:51 configure.orig -rw-r--r-- 1 han users596 Sep

Re: how can I "find xyz | xargs tar" ... like gtar

2007-09-23 Thread Mats O Jansson
On Sun, 23 Sep 2007, Didier Wiroth wrote: > How can achive my goal with the standard openbsd files (without installing > gtar!)? When I started to do backup many years ago it was a find piped to cpio. so i think you could replace the xargs tar with some variant of cpio -o -H ustar which should g

Re: how can I "find xyz | xargs tar" ... like gtar

2007-09-23 Thread Antoine Jacoutot
On Sun, 23 Sep 2007, Didier Wiroth wrote: How can achive my goal with the standard openbsd files (without installing gtar!)? Read tar(1) and have a look at the "-s" flag. -- Antoine

how can I "find xyz | xargs tar" ... like gtar

2007-09-23 Thread Didier Wiroth
Hello, I would like to tar and compress my ports dir without the following 2 directories: a) distfiles b) packages Here is a gtar command I used that works well: cd /usr && gtar -czpf ~/test.tar.gz --exclude=packages --exclude=distfiles ports Actually I would like to do the same with the default