unable to create cron jobs for backups on Solaris

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

Closed (fixed)


Peter were you able to solve this somehow?

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?

dstarj - were you able to create a schedule with "0" selected for the hour and minute, rather than choosing "daily" ?

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?

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

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..

Automatically closed -- issue fixed for 2 weeks with no activity.