diff --git a/.gitignore b/.gitignore index 2372bf46..d3b62d5a 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,7 @@ secrets.py .env map.json *.log +backups/ media/ # Virtualenv diff --git a/apps/scripts b/apps/scripts index a66ce1ad..b311d7d5 160000 --- a/apps/scripts +++ b/apps/scripts @@ -1 +1 @@ -Subproject commit a66ce1ad8520b792e6fdcbc6c9196cb3542565c1 +Subproject commit b311d7d51b3777b6cfc60e100a61bf563dee51ec diff --git a/note.cron b/note.cron index 3aeea476..9683b391 100644 --- a/note.cron +++ b/note.cron @@ -6,6 +6,8 @@ * * * * * root cd /var/www/note_kfet && env/bin/python manage.py send_mail >> /var/www/note_kfet/cron_mail.log * * * * * root cd /var/www/note_kfet && env/bin/python manage.py retry_deferred >> /var/www/note_kfet/cron_mail_deferred.log 00 0 * * * root cd /var/www/note_kfet && env/bin/python manage.py purge_mail_log 7 >> /var/www/note_kfet/cron_mail_purge.log +# Faire une sauvegarde de la base de données + 00 2 * * * root cd /var/www/note_kfet && apps/scripts/shell/backup_db # Vérifier la cohérence de la base et mailer en cas de problème 00 4 * * * root cd /var/www/note_kfet && env/bin/python manage.py check_consistency --sum-all --check-all --mail # TODO