Here is the /etc/e-smith/templates-custom/etc/cron.d/backup/backup script. I edited the original exactly as per the "How to".
{
use POSIX;
use Locale::gettext;
my $lang = $sysconfig{Language} || 'en_US';
$ENV{'LANG'} = $lang;
$ENV{'LANGUAGE'} = $lang;
bindtextdomain('backup', '/usr/share/locale');
textdomain('backup');
setlocale(LC_MESSAGES, "");
$OUT = '';
my $status = $backup{status};
if (defined $status && $status eq 'enabled')
{
my $device = $backup{Device} || "/dev/nst0";
# configure backup time and reminder times from the configuration
# database
my $backupMin;
my $backupHour;
my $reminderMin;
my $reminderHour;
my $backupTime = $backup{backupTime} || "2:00";
my $reminderTime = $backup{reminderTime} || "14:00";
($backupHour, $backupMin) = split (":", $backupTime, -1);
($reminderHour, $reminderMin) = split (":", $reminderTime, -1);
# remove leading zeros from minutes
$backupMin =~ s/00/0/;
$reminderMin =~ s/00/0/;
$OUT .=
. "$backupMin $backupHour * * * root"
. " /sbin/e-smith/backup"
}
else
{
$OUT .= "# ",gettext("Backup task is disabled");
}
}
Only this section:
$OUT .=
. "$backupMin $backupHour * * * root"
. " /sbin/e-smith/backup"
was changed. I noticed the "//" in the log as well but assumed it was just the way it was recorded in the log, because I checked the directory structure and it is all intact. BTW thanks for the replies.
This also appears in the log inreference to the above script, which just doesn't make sense to me:
Jan 28 22:30:57 Fileserver e-smith[1762]: ERROR in /etc/e-smith/templates-custom//etc/cron.d/backup/backup: Program fragment delivered error <Jan 28 22:30:57 Fileserver e-smith[1762]: ^I .">> at template line 1
Jan 28 22:30:57 Fileserver e-smith[1762]: ERROR: Template processing failed for //etc/cron.d/backup: 1 fragment generated errors
Jan 28 22:30:57 Fileserver e-smith[1762]: at /etc/e-smith/events/conf-backup/S10conf-backup line 46