Skip to content

Instantly share code, notes, and snippets.

View seangreen's full-sized avatar

Sean Grünböck seangreen

View GitHub Profile
@kubaceg
kubaceg / mediaBackup.sh
Created June 16, 2014 09:55
magento media backup using rsync
#!/bin/bash
mediaPath="/var/www/magento/htdocs/media"
backupPath="/mnt/backup/media"
rsync -avr "$mediaPath/catalog" "$mediaPath/wysiwyg" "$mediaPath/categoriesDescription" --exclude="catalog/product/cache" --exclude=".thumbs" $backupPath