Portal Home > Knowledgebase > Articles Database > Tar many directories, in pieces? I have a start, can you fill in?
Tar many directories, in pieces? I have a start, can you fill in?
Posted by CallMeJ, 09-12-2007, 06:26 PM |
I'm trying to tar a ton of directories and files, and breaking them up in an attempt to get around the too many arguments problem.
Here's what I tried...
tar -czf [s-z]* ../as-z.tgz
I thought that would tar all directories and files starting with s, and ending in z, placing the tar one directory up.
Instead, I received the following error:
--------
tar (child): s1111: Cannot open: Is a directory
tar (child): Error is not recoverable: exiting now
Broken pipe
--------
s1111 was the first direstory starting with s.
What am I missing? Any ideas? I've been fighting this issue all day long, and tried numerous other things that didn't work.
|
Posted by Patrick, 09-12-2007, 06:29 PM |
You have it backwards, it should be:
tar -czf as-z.tgz [s-z]*
|
Posted by CallMeJ, 09-12-2007, 07:18 PM |
Perfect!! Thanks for taking the time to help.
|
Add to Favourites Print this Article
Also Read