@ -36,6 +36,8 @@ Optional environment variables and their defaults:
\$CLOUD_SCHEDULER_CRON 02 * * *
\$TIMEZONE Etc/UTC
\$CLOUD_SCHEDULER_REPLACE ifset to any value will delete and recreate the Cloud Scheduler job (gcloud prompts before deleting each job)
Caveat: if the scheduler kicks off a subsequent database export on the same SQL instance, it will fail to launch if the previous one hasn't finished yet, so the \$CLOUD_SCHEDULER_CRON will increment the hour field for each successive database on the same SQL instance
"
# used by usage() in lib/utils.sh
@ -66,6 +68,7 @@ for sql_instance in $sql_instances; do
timestamp "Getting all databases on SQL instance '$sql_instance'"
databases="$(gcloud sql databases list --instance="$sql_instance" --format='get(name)')"