Browse Source

Merge pull request #8 from teohhanhui/patch-1

Remove colon in time portion of archive filename
pull/11/head
Johannes Schickling 9 years ago
parent
commit
894008cb07
  1. 2
      mysql-backup-s3/backup.sh

2
mysql-backup-s3/backup.sh

@ -45,6 +45,6 @@ mysqldump $MYSQL_HOST_OPTS $MYSQLDUMP_OPTIONS $MYSQLDUMP_DATABASE | gzip > dump.
echo "Uploading dump to $S3_BUCKET" echo "Uploading dump to $S3_BUCKET"
cat dump.sql.gz | aws s3 cp - s3://$S3_BUCKET/$S3_PREFIX/$(date +"%Y-%m-%dT%H:%M:%SZ").sql.gz || exit 2
cat dump.sql.gz | aws s3 cp - s3://$S3_BUCKET/$S3_PREFIX/$(date +"%Y-%m-%dT%H%M%SZ").sql.gz || exit 2
echo "SQL backup uploaded successfully" echo "SQL backup uploaded successfully"
Loading…
Cancel
Save