1 |
wellsi |
1.1 |
diff -ruN e-smith-backup-2.0.0.old/root/sbin/e-smith/do_backup e-smith-backup-2.0.0/root/sbin/e-smith/do_backup |
2 |
|
|
--- e-smith-backup-2.0.0.old/root/sbin/e-smith/do_backup 2007-09-05 20:45:52.000000000 +0100 |
3 |
|
|
+++ e-smith-backup-2.0.0/root/sbin/e-smith/do_backup 2010-08-07 14:24:48.000000000 +0100 |
4 |
|
|
@@ -41,6 +41,7 @@ |
5 |
|
|
my $backups = esmith::BackupHistoryDB->open |
6 |
|
|
|| die("Could not open backup history db\n"); |
7 |
|
|
my $now = time(); |
8 |
|
|
+die "backup not allowed twice at the same date/time, delayed to next day\n" if $backups->get($now); |
9 |
|
|
my $backup_rec = $backups->new_record($now, { type => 'backup_record' }); |
10 |
|
|
$backup_rec->set_prop('StartEpochTime', "$now"); |
11 |
|
|
$backup_rec->set_prop('BackupType', $backupType); |
12 |
|
|
diff -ruN e-smith-backup-2.0.0.old/root/sbin/e-smith/do_backupwk e-smith-backup-2.0.0/root/sbin/e-smith/do_backupwk |
13 |
|
|
--- e-smith-backup-2.0.0.old/root/sbin/e-smith/do_backupwk 2008-10-07 18:34:31.000000000 +0100 |
14 |
|
|
+++ e-smith-backup-2.0.0/root/sbin/e-smith/do_backupwk 2010-08-07 14:24:48.000000000 +0100 |
15 |
|
|
@@ -38,6 +38,7 @@ |
16 |
|
|
my $backups = esmith::BackupHistoryDB->open |
17 |
|
|
|| die("Could not open backup history db\n"); |
18 |
|
|
my $now = time(); |
19 |
|
|
+die "backup not allowed twice at the same date/time, delayed to next day\n" if $backups->get($now); |
20 |
|
|
my $backup_rec = $backups->new_record($now, { type => 'backup_record' }); |
21 |
|
|
$backup_rec->set_prop('StartEpochTime', "$now"); |
22 |
|
|
$backup_rec->set_prop('BackupType', "workstation"); |