Submitted by Lucian on Mon, 02/08/2021 - 09:41
Hello,
I'm looking to enable scheduled backups of all the domains via cli or api. Right now this call does not exist. Could anyone point me in the right direction with regards to enabling this via workarounds?
Regards, Lucian
Status:
Closed (fixed)
Virtualmin version:
6.09
Webmin version:
1.942
Comments
You could try creating a config file in
/etc/webmin/virtual-server/backups
based on an existing config.However, you'll also need to setup a cron job to run
/etc/webmin/virtual-server/backup.pl --id XXX
where XXX is the name of the config file you created.We'd recommend you update outdated Virtualmin 6.09 to the latest 6.14 and Webmin 1.942 to 1.962.
Submitted by Lucian on Thu, 02/11/2021 - 18:14 Comment #3
Thanks,
I've added in the UI a scheduled backup (hourly) to test and expected to see something new in "crontab -l -u root", but actually no cronjob was set there.
How does Webmin/vmin know to run that scheduled backup every hour?
Please upgrade Webmin and Virtualmin to the latest versions - it's not recommended to run outdated software.
Have a look at Webmin > Webmin Configuration > Webmin Scheduled Functions page.
Submitted by JamieCameron on Sat, 02/13/2021 - 14:21 Comment #5
Webmin has it's own internal cron functionality, so you won't see scheduled backups at System -> Scheduled Cron Jobs. Instead they appear at Webmin -> Webmin Configuration -> Scheduled Functions.
However, you can run a scheduled backup via a regular cron command, as mentioned in comment #1.
Submitted by Lucian on Mon, 02/15/2021 - 03:42 Comment #6
Thanks guys, that should work for me.
Submitted by IssueBot on Mon, 03/01/2021 - 03:43 Comment #7
Automatically closed - issue fixed for 2 weeks with no activity.