Created
November 25, 2010 11:16
-
-
Save l0b0/715225 to your computer and use it in GitHub Desktop.
Compress a path, but exclude all mount points in it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar -X <(cat /etc/fstab | cut -d ' ' -f 2 | grep ^$dir) -zcvf dir.tar.gz $dir/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment