This commit is contained in:
@@ -56,6 +56,6 @@ echo "done"
|
|||||||
# On first month day do
|
# On first month day do
|
||||||
if [ "$month_day" -eq 1 ] ; then
|
if [ "$month_day" -eq 1 ] ; then
|
||||||
echo "make monthly backup"
|
echo "make monthly backup"
|
||||||
aws s3 cp s3://$S3_BUCKET_NAME/$BACKUP_FILENAME.gpg s3://$S3_BUCKET_NAME/$BACKUP_FILENAME_MONTHLY.gpg --storage-class DEEP_ARCHIVE || (curl --retry 3 https://health.d1v3.de/ping/8183024f-0aa5-4e19-90a2-c1325a5408ae/fail && exit 1)
|
aws s3 cp s3://$S3_BUCKET_NAME/$BACKUP_FILENAME.gpg s3://$S3_BUCKET_NAME/$BACKUP_FILENAME_MONTHLY.gpg --storage-class DEEP_ARCHIVE || healthchck_fail
|
||||||
fi
|
fi
|
||||||
healthchck_ok
|
healthchck_ok
|
||||||
|
|||||||
Reference in New Issue
Block a user