Skip to content

Instantly share code, notes, and snippets.

@deckerego
Created December 6, 2013 16:54
Show Gist options
  • Select an option

  • Save deckerego/7828190 to your computer and use it in GitHub Desktop.

Select an option

Save deckerego/7828190 to your computer and use it in GitHub Desktop.
Most tar implementations are supposed to support xz compression along with gzip and bzip2, but some (*cough* OS X *cough*) still haven't gotten aboard the compression train.
tar cvf - $DIRECTORY | xz - > $OUTPUT_FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment