limiting filesize in zips
hi. Im writing a script that will cycle thru each users directory, and add freshened files to a zip stored on another server.
However, i need to limit the filesize of individual files to 500mb. (ie, a user could have 15 400mb files, that sok, but no fles > 500mb at all). Is there an easy way to do this? I thought about using this from the man page: zip -r foo . -i@include.lst while going thru and listing all files < 500mb in includelist. However, i need to preserve directory structure, and this solution will nto work. any suggestions? Thanks, ~Keegan ps, im using SunOS 5.9 if it makes a difference. also, tar is not an option. |
bump.
would it be easier to check the filesizes after i make the zip file, then remove the files > 500mb? does anyone know how to do this? google isnt helping. |
All times are GMT -5. The time now is 02:03 PM. |