diff options
| author | Luke Hoersten <[email protected]> | 2021-07-25 10:30:51 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2021-07-25 10:30:51 -0500 |
| commit | 1804c35d5306fc9c34c07655419fa8449c501162 (patch) | |
| tree | 9c55e3505949c533108a5d01ea028f9acbedd7d4 /dendrite/aws-s3-backup/files/writefreely-s3-backup.sh | |
| parent | 33e25728398a9ccdd446197b1eb12e66c40a890e (diff) | |
Lots of updates.
Diffstat (limited to 'dendrite/aws-s3-backup/files/writefreely-s3-backup.sh')
| -rw-r--r-- | dendrite/aws-s3-backup/files/writefreely-s3-backup.sh | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/dendrite/aws-s3-backup/files/writefreely-s3-backup.sh b/dendrite/aws-s3-backup/files/writefreely-s3-backup.sh deleted file mode 100644 index 402d6fe..0000000 --- a/dendrite/aws-s3-backup/files/writefreely-s3-backup.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -BUCKET=$1 -BACKUP_DIR=$2 -BACKUP_TAR="/tmp/$BUCKET.tgz" - -tar -zc -f $BACKUP_TAR $BACKUP_DIR -aws s3 mb "s3://$BUCKET/" -aws s3api put-bucket-versioning --bucket "$BUCKET" --versioning-configuration Status=Enabled -aws s3api put-bucket-lifecycle-configuration --bucket "$BUCKET" --lifecycle-configuration "file:///usr/local/share/writefreely-s3-backup-lifecycle.json" -aws s3 cp $BACKUP_TAR "s3://$BUCKET/" - -rm $BACKUP_TAR |
