Skip to content

Instantly share code, notes, and snippets.

@voutilad
Created June 9, 2017 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voutilad/3b1bbddada2aabfa87fd02591efacd58 to your computer and use it in GitHub Desktop.
Save voutilad/3b1bbddada2aabfa87fd02591efacd58 to your computer and use it in GitHub Desktop.
POSIX `tar` excluding a file/directory
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