Tuesday, July 28, 2009

Backup All Directories in Current Directory

If you want to tar.gz all directories in the current directory in OS X, use this:
find . -maxdepth 1 -type d ! -name . -exec tar -czvf {}.tar.gz {} \;

No comments: