Updated Setting up Backup (markdown)
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_CMS_LOG_PATH=/var/log/aws-s3-sync-cms-$(date +%F).log
|
||||||
S3_BUCKET=s3.example.com
|
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 ${CMS_BACKUP_PATH} -type f -mtime +30 -delete
|
||||||
find /var/log/aws-s3-sync-*.log -type f -mtime +30 -delete
|
find /var/log/aws-s3-sync-*.log -type f -mtime +30 -delete
|
||||||
|
|
Loading…
Reference in a new issue