mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-22 07:17:05 +00:00
delete /etc/cron.daily/mailinabox-backup
This commit is contained in:
parent
d703b0a2a1
commit
82f4f8b2eb
@ -31,9 +31,12 @@ ln -s $(pwd)/conf/management-initscript /etc/init.d/mailinabox
|
||||
hide_output update-rc.d mailinabox defaults
|
||||
|
||||
# Perform a daily backup.
|
||||
if [ -f /etc/cron.daily/mailinabox-backup ]; then
|
||||
rm /etc/cron.daily/mailinabox-backup
|
||||
fi
|
||||
cat > /etc/cron.d/mailinabox-backup << EOF;
|
||||
# /etc/cron.d/mailinabox-backup: crontab fragment to run maininabox-backup
|
||||
# This executes mailinabox-backup at 3am.
|
||||
# This executes $(pwd)/management/backup.py at 3am.
|
||||
|
||||
0 3 * * * root $(pwd)/management/backup.py
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user