diff --git a/scripts/db_backup.sh b/scripts/db_backup.sh index ba1c8e96..7621dae0 100755 --- a/scripts/db_backup.sh +++ b/scripts/db_backup.sh @@ -1,5 +1,7 @@ #!/bin/bash +echo "\n\n`date +"%Y-%m-%d-%H%M"` Starting a DB backup.\n" + # Get current script directory (pwd doesn't cut it) csd=$(cd -P -- "$(dirname -- "$0")" && pwd -P) # Set the environment. We only grab the entries we need because otherwise we diff --git a/setup-scripts/support/crontab b/setup-scripts/support/crontab index 75504aa8..9ebdb5ae 100644 --- a/setup-scripts/support/crontab +++ b/setup-scripts/support/crontab @@ -2,3 +2,4 @@ 0 0,8,16 * * * /home/user/skynet-webportal/setup-scripts/log-checker.py /home/user/skynet-webportal/.env sia 8 0 * * * * /home/user/skynet-webportal/setup-scripts/health-checker.py /home/user/skynet-webportal/.env sia 1 30 */4 * * * /home/user/skynet-webportal/setup-scripts/blocklist-airtable.py /home/user/skynet-webportal/.env +0 4 * * * /home/user/skynet-webportal/scripts/db_backup.sh 1 >> /home/user/skynet-webportal/logs/db_backup_`date +"%Y-%m-%d-%H%M"`.log 2 > &1