Skip to content

Instantly share code, notes, and snippets.

@jjelosua
Created January 29, 2019 03:25
Show Gist options
  • Save jjelosua/11152ce52d74944dbe44c779f9481a5f to your computer and use it in GitHub Desktop.
Save jjelosua/11152ce52d74944dbe44c779f9481a5f to your computer and use it in GitHub Desktop.
Compress folder with MANY files (size) and remove the original on the fly
find wp-plugins -depth -print0 | xargs -0 gtar --create --no-recursion --remove-file --file - | gzip -9 > wp-plugins.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment