from this discussion thread: http://www.virtualmin.com/forums/general-discussion/re%3aerror-with-sche...
(it isnt a very severe bug, but its is really annoying!)
I'm creating a backup to run every day (at midnight), it'll backup to FTP.
The file on server is : /backup/%d-%m-%Y
I'm using the "one file per server" option for backup format, and I've checked:
Do strftime-style time substitutions on file or directory name
Transfer each virtual server after it is backed up
but when I click "save schedule" it says:
Failed to save scheduled backup : An error was detected in the new Cron configuration :
@daily /opt/local/etc/webmin/virtual-server/backup.pl --id 123187495828131
crontab: error on previous line; unexpected character found in line.
crontab: errors detected in input, no crontab file generated.
#
# Rotate system logs
#
10 3 * * * /usr/sbin/logadm
#
#
#
15 3 * * 0 /usr/lib/fs/nfs/nfsfind
30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean
#
# The rtc command is run to adjust the real time clock if and when
# daylight savings time changes.
#
1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
#
# Run Virtualmin based log rotation
#
30 0 * * * /opt/local/sbin/logrotate -f /opt/local/etc/logrotate.conf
#
# Other Virtualmin Cron jobs
#
54 11 * * * /opt/local/etc/webmin/cron/tempdelete.pl
0 * * * * /opt/local/etc/webmin/virtual-server/bw.pl
47 10 * * * /opt/local/etc/webmin/virtual-server/licence.pl
3 2 * * * /opt/local/etc/webmin/virtual-server/sendratings.pl
0 * * * * /opt/local/etc/webmin/virtual-server/fcgiclear.pl
44 22 * * * /etc/webmin/cron/tempdelete.pl
@daily /opt/local/etc/webmin/virtual-server/backup.pl --id 123187495828131
Comments
Submitted by dstarj on Thu, 03/25/2010 - 18:36 Comment #2
Submitted by dstarj on Thu, 03/25/2010 - 18:36 Comment #3
hello i have same exact issue please let me know what to do using accelerator from http://joyent.com
Submitted by dstarj on Thu, 03/25/2010 - 18:37 Comment #4
Peter were you able to solve this somehow?
Submitted by andreychek on Thu, 03/25/2010 - 18:39 Comment #5
The bug report here describes a fix to this problem:
https://www.virtualmin.com/node/3701
Let us know if that doesn't work for you.
Submitted by dstarj on Thu, 03/25/2010 - 18:45 Comment #6
thanks for the quick response andreychek but i am not seeing any fix in this link? just description of the same issue i'm having ...am i looking in the wrong place?
Submitted by JamieCameron on Thu, 03/25/2010 - 18:46 Comment #7
dstarj - were you able to create a schedule with "0" selected for the hour and minute, rather than choosing "daily" ?
Submitted by andreychek on Thu, 03/25/2010 - 18:47 Comment #8
Howdy -- it's possible you're not able to see any comments beyond the initial one due to some weird permissions issues when the system was migrated from another bug tracker.
The workaround to that issue is:
Solaris doesn't support Cron schedule specifications like @daily.
The bug is that Virtualmin shouldn't even offer this option on Solaris. The work-around is to select on the backup form the 'Complex schedule' option, click the ... button next to it, select a schedule, then click OK.
Out of curiosity, what Virtualmin version are you using?
Submitted by dstarj on Thu, 03/25/2010 - 18:51 Comment #9
this is great news! thanks yes that worked .... Virtualmin version 3.63.gpl (GPL)
and yes your right i could not see that fix before you posted it just now
Submitted by JamieCameron on Thu, 03/25/2010 - 19:24 Comment #10
I'm pretty sure that the underlying bug of the cron schedules like "daily" and "weekly" showing up on Solaris has been fixed in the last few Virtualmin releases..
Submitted by Issues on Fri, 04/09/2010 - 01:21 Comment #11
Automatically closed -- issue fixed for 2 weeks with no activity.