Backup folders

With this simple command you can backup all dirs in current directory and compress them with gzip.

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


Posted

in

by

Tags: