Created
June 9, 2017 01:01
-
-
Save voutilad/3b1bbddada2aabfa87fd02591efacd58 to your computer and use it in GitHub Desktop.
POSIX `tar` excluding a file/directory
This file contains 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 -cvf ../standalone/mybackup.tar $(ls /var/postgresql/data | grep -v -e 'pg_xlog') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment