Posted By

kynatro on 04/27/12


command backup line gzip terminal

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Backup folders

 / Published in: Bash

Quick backup script to output all folders in a location to their own gzip files.

  1. for f in $(ls -d *); do gzip -cr $f > $f.gz; done;

Report this snippet  

You need to login to post a comment.