Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kalenjordan
Created March 27, 2014 13:03
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 kalenjordan/9807089 to your computer and use it in GitHub Desktop.
Save kalenjordan/9807089 to your computer and use it in GitHub Desktop.
Tar Magento Files
tar --exclude="media" --exclude="includes" --exclude="var" -cvf var/files.tar .
@jonpday
Copy link

jonpday commented Sep 3, 2014

be careful with the --exclude="media" switch because that will match on important files that contain "media" somewhere in the path e.g.
js/tiny_mce/plugins/media/img/realmedia.gif
js/tiny_mce/plugins/media/img/windowsmedia.gif
js/tiny_mce/plugins/media/css/media.css
js/tiny_mce/plugins/media/js/media.js
js/tiny_mce/plugins/media/media.htm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment