/[smeserver]/rpms/e-smith-backup/sme7/e-smith-backup-2.0.0-once_a_day.patch
ViewVC logotype

Contents of /rpms/e-smith-backup/sme7/e-smith-backup-2.0.0-once_a_day.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sat Aug 7 13:59:48 2010 UTC (14 years, 3 months ago) by wellsi
Branch: MAIN
CVS Tags: e-smith-backup-2_0_0-36_el4_sme, e-smith-backup-2_0_0-38_el4_sme, e-smith-backup-2_0_0-33_el4_sme, e-smith-backup-2_0_0-35_el4_sme, e-smith-backup-2_0_0-32_el4_sme, e-smith-backup-2_0_0-37_el4_sme, e-smith-backup-2_0_0-34_el4_sme, e-smith-backup-2_0_0-31_el4_sme, HEAD
Do not backup more than once per day, by Filippo Carletti [SME: 5444]

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");

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed