View Single Post
  #5 (permalink)  
Old 06-15-2008, 10:30 AM
Philipp Ghirardini
Tablet PC Guest
 
Posts: n/a
Re: tar --remove-files

jellybean stonerfish wrote:
> 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
>

No, I tried that but than I got :


tar: compile.sh: Cannot stat: No such file or directory
tar: test_23s.cpp: Cannot stat: No such file or directory
tar: test_23s_inp.cpp: Cannot stat: No such file or directory
tar: test_9s.cpp: Cannot stat: No such file or directory
tar: test_9s_inp.cpp: Cannot stat: No such file or directory
tar: test_fast.cpp: Cannot stat: No such file or directory
tar: test_fast_inp.cpp: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors

Which are the files in the directory where i did the call and not the
files of the directory I want to archive.
Reply With Quote

 
Old 06-15-2008, 10:30 AM
Xploder HD Movie Player for PS3. Manage, convert and transfer media files between the PC and PS3.