Created
August 3, 2014 12:57
-
-
Save antoinekociuba/0cfb05439ebe3ff423f3 to your computer and use it in GitHub Desktop.
Command to Tar Magento media folder, excluding unwanted files/folders. This command needs to be run on your magento installation root folder.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar -zcvf var/backups/media_$(date +%d%m%Y).tar.gz --exclude-vcs --exclude='*cache*' --exclude='captcha' --exclude='wysiwyg/.thumbs' --exclude='tmp' --exclude='import' --exclude='export' --exclude='js' --exclude='js_secure' --exclude='css' --exclude='css_secure' media/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment