QUOTE (Catalyst)
CODE
for $FILE in `ls x??`; do cat $FILE >> filename.tar; done
Let's do one better ...
CODE
tar -zc filename.tar.gz /some/path/and/mask | split -b1024m - filename.tar.gz.
Now it'll make "filename.tar.gz.??" instead of just x??. A little more unwieldly to work with, and they're compressed to boot.
Decompression will work a little better that way, as well --- at least you know what you're trying to decompress.
Hmm.. the latter just made 2 large files.. (I thought it would split them into 1GB files).
I'm in a subdir just above httpdocs, which I have the subdirs httpdocs and backup, and am using the command..
tar -zc backup/web.tar.gz httpdocs | split -b1024m - backup/web.tar.gz
basically I want a bunch of 1GB files here:
backup/web1.tar.gz
backup/web2.tar.gz
backup/web3.tar.gz
..etc... each 1GB in size
(??)