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;
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;