Created
August 15, 2017 21:17
-
-
Save ngstigator/032b3810da98729a4fc04ca2aeebabc6 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
BACKUP_DIR=/home/web/db | |
DB_FILE=$(ls $BACKUP_DIR -tp |grep -v /$ | head -1) | |
s3cmd put $BACKUP_DIR/$DB_FILE s3://{BUCKET_NAME}/db/$DB_FILE 2>&1 | |
#echo $DB_FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment