Skip to content

Instantly share code, notes, and snippets.

@alvar0hurtad0
Created October 20, 2014 11:09
Show Gist options
  • Save alvar0hurtad0/0f0e0f4a8be1f1db8c7a to your computer and use it in GitHub Desktop.
Save alvar0hurtad0/0f0e0f4a8be1f1db8c7a to your computer and use it in GitHub Desktop.
#!/bin/sh
DATE=$(date +%Y-%m-%d)
cd /var/www/campusabbvie/httpdocs/
drush cc all
drush archive-dump --destination=/root/drush-backups/backup-1.tar.gz --tar-options="--exclude=%files/styles/*" --overwrite
mv /root/drush-backups/backup-1.tar.gz /root/drush-backups/day_$DATE.abbvie.tar.gz
s3cmd put /root/drush-backups/day_$DATE.abbvie.tar.gz s3://aspgemsdrupalbackups/day/day_$DATE.abbvie.tar.gz
rm /root/drush-backups/day_$DATE.abbvie.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment