Updated Setting up Backup (markdown)

Theodotos Andreou 2018-01-16 09:08:03 +02:00
parent 9109888eac
commit 436260b1af

@ -42,7 +42,7 @@ CMS_BACKUP_PATH=/srv/webadmin/cms/sites/default/private/backup_migrate/scheduled
S3_CMS_LOG_PATH=/var/log/aws-s3-sync-cms-$(date +%F).log
S3_BUCKET=s3.example.com
aws s3 sync ${CMS_BACKUP_PATH} s3://${S3_BUCKET}/ 2>&1 ${S3_CMS_LOG_PATH}
aws s3 sync ${CMS_BACKUP_PATH} s3://${S3_BUCKET}/${HOSTNAME}/ 2>&1 ${S3_CMS_LOG_PATH}
find ${CMS_BACKUP_PATH} -type f -mtime +30 -delete
find /var/log/aws-s3-sync-*.log -type f -mtime +30 -delete