Quote:
The script does not group the files based on their compressed sizes, but on their uncompressed size. It will not split a file between two archives, nor will it reorder the files to get better distribution between archives. (Like I said, those options are possible, but result in a much more complex and often very much slower script.) I suggest you try with a maximum size limit about 400M smaller. Quote:
If you want to create a zip file in /home/foo/bar/recordings, containing the files in that directory or its subdirectories, use Code:
( cd /home/foo/bar/recordings ; /path/to/nominalanimal.sh . ) The parentheses tell your shell to use a subshell, and the cd will then change the working directory only for the subshell, not for the script or shell you run the above from. Effectively, the working directory is only changed for the nominalanimal.sh script. Quote:
Because the files may reside in subdirectories, a normal copy often does not work, since it will not create the intermediate directories. However, you can use tar. For example, if you insert the following line after each line containing a zip command in the script, Code:
tar -cf - "${FILES[@]}" | tar -xf - -C where-to-move || exit $? Code:
rm -f "${FILES[@]}" Since the above will not remove empty directories, you can replace the last two lines of the script to remove (only) empty directories. It is safe: it will not remove a directory with files (or subdirectories with files), even if the files are "hidden" (not listed in a standard directory listing). The two lines would be changed to Code:
) || exit $? |
All times are GMT -5. The time now is 06:20 PM. |