Skip to content

Instantly share code, notes, and snippets.

@trepmal
Created January 15, 2016 05: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 trepmal/2ac82a751182c7264204 to your computer and use it in GitHub Desktop.
Save trepmal/2ac82a751182c7264204 to your computer and use it in GitHub Desktop.

create tarball of only end of 2015 and 2016

cd wp-content/uploads/sites/
find 5/ -regextype sed -regex ".*/\(2015/1\|2016\).*" | tar -czvf uploads.tar.gz --files-from -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment