Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-01-2004, 03:58 PM   #1
Registered: Jan 2004
Distribution: Redhat WS and VectorLinux
Posts: 41

Rep: Reputation: 15
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?


ps, im using SunOS 5.9 if it makes a difference. also, tar is not an option.
Old 09-03-2004, 08:51 AM   #2
Registered: Jan 2004
Distribution: Redhat WS and VectorLinux
Posts: 41

Original Poster
Rep: Reputation: 15

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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
extract modem and printer driver zips kapalka Linux - Software 26 03-31-2005 12:19 PM
extract modem and printer zips kapalka Linux - Newbie 1 03-27-2005 04:00 AM
Downloading all the .zips on this site Baix Programming 6 02-22-2005 03:34 AM
Open Office zips my files Gerry Millette Linux - Software 0 10-11-2004 04:49 PM
Success with OpenOffice1.1 and Zips larwana Member Success Stories 0 03-16-2004 06:03 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:19 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration