Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple Drush backup script
#!/bin/bash
BACKUP_DATE=$(date +%Y%m%d%H%M%S)
if [[ $CI_RELEASE ]]; then
BACKUP_DATE=$CI_RELEASE
fi
drush sql-dump > ../db/$BACKUP_DATE.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment