4
votes
2answers
333 views

How make a compressed tar when there are too many filenames for the shell to expand on a single line?

Normally I would just do something like: tar -czf archive.tar.gz *.csv But when there are too many files in the directory for the shell to expand on a single line this doesn't work. In these cases ...
1
vote
1answer
307 views

find files with spaces modified in last 60 days and tar.gz in files no bigger then 4gb with date

I maintain a file server. I need to backup files that have changed in a period of time. First i compressed up everything to 4gb files and backed up to dvd. But 7z that I was using 7z a -t7z ...
0
votes
1answer
92 views

How to collect all media file in a mac directory structure?

I'm trying to copy all media files (Mac file type of Image or Movie) to the same directory structure, only taking media files. Is there a more efficient way than what I've got below? Is there a ...
0
votes
1answer
1k views

linux zip and tar all files with a specific extenstion recursively maintaining directory structure

Similar to this question and this question I'd like to make a single compressed tar file (files.tar.gz) that contains all the php files in my webroot and all it's subdirectories, maintaining folder ...
1
vote
2answers
2k views

GREP and TAR all files/directories matching X

I would like to find and gzip/tarball contents of all the folders matching wordpress in my directory, but I am having trouble trying to get the command to work, I thought it was something like find ...
2
votes
1answer
772 views

tar - exclude certain files

I wish to tar all files in a directory and its subdirectories that do NOT end in .jpg, .bmp, .gif, or png. So, given the following folders and files: foo/file.txt foo/file.gif foo/bar/file ...
3
votes
3answers
5k views

Using find and tar with files with special characters in the name

I want to archive all .ctl files in a folder, recursively. tar -cf ctlfiles.tar `find /home/db -name "*.ctl" -print` The error message : tar: Removing leading `/' from member names tar: ...
10
votes
1answer
7k views

How can I force only relative paths in “find” output?

I am attempting to create a script that can compress files with a certain extension in a number of directories into a single tar-ball. Currently what I have in the script file is: find "$rootDir" ...