Skip to content
Snippets Groups Projects
Verified Commit 343302cf authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

Fix duplicate crontab entries across restarts

parent cf5930af
No related branches found
No related tags found
1 merge request!46Improve db-backup image
......@@ -2,18 +2,27 @@
# DB_TYPE : MYSQL|POSTGRES
# MYSQL POSTGRESQL MONGODB
# MYSQL_SERVICE_NAME_LIST POSTGRES_SERVICE_NAME_LIST MONGO_SERVICE_NAME_LIST
# MYSQL_HOST_LIST POSTGRES_HOST_LIST MONGO_HOST_LIST
# MYSQL_PORT_LIST POSTGRES_PORT_LIST MONGO_PORT_LIST
# MYSQL_USER_LIST POSTGRES_USER_LIST MONGO_USER_LIST
# MYSQL_PASS_LIST POSTGRES_PASS_LIST MONGO_PASS_LIST
# MYSQL_DB_LIST POSTGRES_DB_LIST MONGO_DB_LIST
# MYSQL_INIT_BACKUP_LIST POSTGRES_INIT_BACKUP_LIST MONGO_INIT_BACKUP_LIST
# MYSQL_CRON_TIME_LIST POSTGRES_CRON_TIME_LIST MONGO_CRON_TIME_LIST
# MYSQL_EXTRA_OPTS_LIST POSTGRES_EXTRA_OPTS-LIST MONGO_BACKUP_FOLDER_LIST
###############################
# Needed env for each DB type #
###############################
# MYSQL POSTGRESQL MONGODB
# MYSQL_SERVICE_NAME_LIST POSTGRES_SERVICE_NAME_LIST MONGO_SERVICE_NAME_LIST
# MYSQL_HOST_LIST POSTGRES_HOST_LIST MONGO_HOST_LIST
# MYSQL_PORT_LIST POSTGRES_PORT_LIST MONGO_PORT_LIST
# MYSQL_USER_LIST POSTGRES_USER_LIST MONGO_USER_LIST
# MYSQL_PASS_LIST POSTGRES_PASS_LIST MONGO_PASS_LIST
# MYSQL_DB_LIST POSTGRES_DB_LIST MONGO_DB_LIST
# MYSQL_INIT_BACKUP_LIST POSTGRES_INIT_BACKUP_LIST MONGO_INIT_BACKUP_LIST
# MYSQL_CRON_TIME_LIST POSTGRES_CRON_TIME_LIST MONGO_CRON_TIME_LIST
# MYSQL_EXTRA_OPTS_LIST POSTGRES_EXTRA_OPTS-LIST MONGO_BACKUP_FOLDER_LIST
# MYSQL_BACKUP_FOLDER_LIST POSTGRESQL_BACKUP_FOLDER_LIST
#################
# Reset crontab #
#################
echo "" > /crontab.conf
#####################
# Create the arrays #
#####################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment