Automatic daily backup using cron
-
Hi guys,
Trying to do a config backup every night around 12am
so I tried crontab -e
and put this script as the documentation said though changed the date
wget -q –post-data 'Submit=download'
http://admin:****@192.168.13.1/diag_backup.php
-O config-router-0 24 * * *
.xmlI'm getting the bad minute error. I also used the original file in the documentation and still get the same error
Any help would be very appreciated.
-
"0 24 * * *" is what you give crontab for the date.
You probably want something like:
date +%Y%m%d%H%M%S
in that place.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.