mirror of
https://github.com/ditkrg/db-backup-s3.git
synced 2026-01-22 13:56:47 +00:00
14 lines
222 B
Bash
14 lines
222 B
Bash
#! /bin/sh
|
|
|
|
set -e
|
|
|
|
if [ "${S3_S3V4}" = "yes" ]; then
|
|
aws configure set default.s3.signature_version s3v4
|
|
fi
|
|
|
|
if [ "${SCHEDULE}" = "**None**" ]; then
|
|
sh backup.sh
|
|
else
|
|
exec go-cron "$SCHEDULE" /bin/sh backup.sh
|
|
fi
|