From 436260b1aff5ac941df08915b14424c7575925b6 Mon Sep 17 00:00:00 2001 From: Theodotos Andreou Date: Tue, 16 Jan 2018 09:08:03 +0200 Subject: [PATCH] Updated Setting up Backup (markdown) --- Setting-up-Backup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Setting-up-Backup.md b/Setting-up-Backup.md index 57f37f5..2fd52dc 100644 --- a/Setting-up-Backup.md +++ b/Setting-up-Backup.md @@ -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