Quick question about tar (backup) with same file extension
Hi everyone,
I have my php files scatter all over the place and i only want to make a copy of these php file only. I wonder if i can use tar to backup all file end with php extension. Thanks, Duy |
tar czvf foo.tar.gz *.php
|
use a wildcard
|
Quote:
tar: *.php: Cannot stat: No such file or directory tar: Error exit delayed from previous errors |
How about
Code:
$ find -iname '*.php' | xargs tar czvf foo.tar.gz |
Quote:
:newbie: |
Code:
find -iname '*.php' | xargs tar czvf foo.tar.gz |
All times are GMT -5. The time now is 08:44 PM. |