Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- find public/media -type f \
- ! -name ".DS_Store" \
- ! -name ".htaccess" \
- ! -path "public/media/catalog/*cache*" \
- ! -path "public/media/css*" \
- ! -path "public/media/js*" \
- ! -path "public/media/import/*" \
- ! -path "public/media/wysiwyg/.thumbs/*" \
- ! -path "public/media/xmlconnect/*" \
- -print0 \
- tar --create \
- --gzip \
- --verbose \
- --file="tools/assets/development/media.$(date +"%Y-%m-%d").tar.gz" \
- --null \
- --files-from=-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement