Hello,
I would like to tar and compress my ports dir without the following 2 directories:
a) distfiles
b) packagesHere is a gtar command I used that works well:
cd /usr && gtar -czpf ~/test.tar.gz --exclude=packages --exclude=distfiles portsActually I would like to do the same with the default openbsd tools ... but I can't :-((
I tried different commands ... but without success .... it does not work.
Using "find ... | xargs tar ..." does not work as expected, as it looks like xargs invokes the tar command multiple times.
As a result, the ports.tar.gz file is overwritten and incomplete.I tried a lot of combinations like:
cd /usr
find ports/ ! \( -type d -name packages -maxdepth 1 \) -and ! \( -type d -name distfiles -maxdepth 1 \) -print \
| xargs tar -czpf ~/ports.tar.gz;
This does not work .... the ports.tar.gz file is overwritten multiple times and at the end it is incomplete.
I also tried pax or tried to redirect the find command in a file ( find .. > files.txt), and use "cat files | xargs tar ..." same result :-(How can achive my goal with the standard openbsd files (without installing gtar!)?
Thank you very much
didier
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Rafael J. Wysocki | [Bug #11210] libata badness |
| Andrea Arcangeli | [PATCH 00 of 11] mmu notifier #v16 |
| Andrew Morton | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Daniel Eischen | Re: error with thread |
| David Miller | Re: [GIT]: Networking |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
