You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.
echo >&2 'Backup information is not complete. You need to specify S3_ACCESS_KEY, S3_SECRET_KEY, S3_URL, MONGO_URL, MONGO_USER, MONGO_PASSWORD. No backups, no fun.'
exit 1
fi
# set s3 config
sed -i "s|%%S3_ACCESS_KEY%%|$S3_ACCESS_KEY|g" /root/.s3cfg
sed -i "s|%%S3_SECRET_KEY%%|$S3_SECRET_KEY|g" /root/.s3cfg
# verify S3 config
s3cmd ls "s3://$S3_URL" > /dev/null
# set cron schedule TODO: check if the string is valid (five or six values separated by white space)