I need help on a very simple script. I'm trying to tar to a file more than 1300 files that are in a directory tree. Here is what I do:
cd <rootdir>
find . -name "*.wdb" > /tmp/out.txt
cat /tmp/out.txt | xargs tar -cvf /tmp/out.tar
Although the last command makes it appear that all 1300+ files are being tarred up, when I untar the file, only about the last 512 files are untarred. The size of the tar file is 2.5 MB.
Does tar have a limit on the number of files you can have? If so, what are my alternatives other than tar? pax? cpio?
If tar doesn't have a limit on the number of files in a tar, what am I doing wrong?
thanks for any help.
cd <rootdir>
find . -name "*.wdb" > /tmp/out.txt
cat /tmp/out.txt | xargs tar -cvf /tmp/out.tar
Although the last command makes it appear that all 1300+ files are being tarred up, when I untar the file, only about the last 512 files are untarred. The size of the tar file is 2.5 MB.
Does tar have a limit on the number of files you can have? If so, what are my alternatives other than tar? pax? cpio?
If tar doesn't have a limit on the number of files in a tar, what am I doing wrong?
thanks for any help.