1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-07 16:17:23 +01:00

Change hour of daily tasks to run at 1am and only run full backups on weekends (#2424)

* Change hour of daily tasks to run at 1am
* Change to only do full backup on weekends
This commit is contained in:
zoof
2024-12-22 07:57:59 -05:00
committed by GitHub
parent 564ed59bb4
commit 4f094f7859
2 changed files with 12 additions and 7 deletions

View File

@@ -116,7 +116,7 @@ minute=$((RANDOM % 60)) # avoid overloading mailinabox.email
cat > /etc/cron.d/mailinabox-nightly << EOF;
# Mail-in-a-Box --- Do not edit / will be overwritten on update.
# Run nightly tasks: backup, status checks.
$minute 3 * * * root (cd $PWD && management/daily_tasks.sh)
$minute 1 * * * root (cd $PWD && management/daily_tasks.sh)
EOF
# Start the management server.