| Re: tar --remove-files On Sun, 15 Jun 2008 14:54:11 +0200, Philipp Ghirardini wrote:
> I have the following tar command:
>
> tar --remove-files -C /net_tests/tests/dir_one -czf
> /net_tests/tests/dir_one/myzip.tar.gz . --exclude=file3
> --exclude=myzip.tar.gz
> I think the problem is that the command is packing the '.' and so it is
> trying to remove it what fails of course. I also creates a subdirectory
> '.' in the archive. Actually it doesn't matter because when unpacking
> the archive that has no effect.
>
> Philipp
Can you use a * to get all the files rather than a . to get the dir?
stonerfish |