1 |
filippocarletti |
1.1 |
diff -Naur e-smith-backup-2.2.0-old/root/sbin/e-smith/do_backup e-smith-backup-2.2.0/root/sbin/e-smith/do_backup |
2 |
|
|
--- e-smith-backup-2.2.0-old/root/sbin/e-smith/do_backup 2007-09-05 21:45:52.000000000 +0200 |
3 |
|
|
+++ e-smith-backup-2.2.0/root/sbin/e-smith/do_backup 2010-01-25 13:51:23.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 -Naur e-smith-backup-2.2.0-old/root/sbin/e-smith/do_backupwk e-smith-backup-2.2.0/root/sbin/e-smith/do_backupwk |
13 |
|
|
--- e-smith-backup-2.2.0-old/root/sbin/e-smith/do_backupwk 2008-10-07 19:34:33.000000000 +0200 |
14 |
|
|
+++ e-smith-backup-2.2.0/root/sbin/e-smith/do_backupwk 2010-01-25 13:47:56.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"); |