|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| ARCHIVES - Programming & Scripting A place to discuss website design, programming, shell scripts, etc |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hey guys, hopefully someone can help me out with this fairly noobish question. I am writing a back script for work and have become stuck. I have a short script written to back up files however I was wondering if there was a way to get gzip to read a file, like a text file, and zip individually the folders written with it this document. Thanks.
|
|
|||
|
Not like zip if remember correctly but you can loop through a list of files using a bash script
http://bash.cyberciti.biz/file-management/readline.php just add gzip -c $1 > backup.gz gzip -c $1 >> backup.gz -Michael |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|