crontab virtualmin edition

For those of you who dont understand the crontab on virtualmin here are some useful steps bakup of virtual servers:

Create a backup and create any schedule.
Login to console and enter:

$crontab -e

This will open the crontab using the "vi" editor not your "nano" so be careful

Look for the backup line like these below


0 0 * * 1-6 /etc/webmin/virtual-server/backup.pl --id 129783156318631
0 0 * * 7 /etc/webmin/virtual-server/backup.pl --id 130216537832489

The red marks what you should edit. the first red is run the backup every midnight from monday to saturday
The second red is backup every midnight sunday.

So if you want to backup every

monday to friday  0 0 * * 1-5
monday to thursday  0 0 * * 1-4

every day at 1pm 0 1 * * *
every day at 3pm 0 3 * * *

modany to friday every 1pm 0 1 * * 1-5

Check this site here also has a live howto that will output it ! cool linkah!

Comments

Popular posts from this blog

Black screen after logging in on Windows 2012 R2 using domain credentials on remote desktop connection

Water Wonder Resort

Client denied by server configuration error