install the backup script as a daily cron job
This commit is contained in:
parent
87f001a5d5
commit
573faa2bf5
|
@ -21,5 +21,14 @@ rm -f /etc/init.d/mailinabox
|
|||
ln -s $(pwd)/conf/management-initscript /etc/init.d/mailinabox
|
||||
update-rc.d mailinabox defaults
|
||||
|
||||
# Perform a daily backup.
|
||||
cat > /etc/cron.daily/mailinabox-backup << EOF;
|
||||
#!/bin/bash
|
||||
# Mail-in-a-Box --- Do not edit / will be overwritten on update.
|
||||
# Perform a backup.
|
||||
$(pwd)/management/backup.py
|
||||
EOF
|
||||
chmod +x /etc/cron.daily/mailinabox-backup
|
||||
|
||||
# Start it.
|
||||
service mailinabox restart
|
||||
|
|
Loading…
Reference in New Issue