/[smeserver]/rpms/e-smith-backup/sme8/e-smith-backup-2.2.0-once_a_day.patch
ViewVC logotype

Annotation of /rpms/e-smith-backup/sme8/e-smith-backup-2.2.0-once_a_day.patch

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


Revision 1.1 - (hide annotations) (download)
Mon Jan 25 12:27:13 2010 UTC (14 years, 9 months ago) by filippocarletti
Branch: MAIN
CVS Tags: e-smith-backup-2_2_0-62_el5_sme, e-smith-backup-2_2_0-30_el5_sme, e-smith-backup-2_2_0-72_el5_sme, e-smith-backup-2_2_0-40_el5_sme, e-smith-backup-2_2_0-27_el5_sme, e-smith-backup-2_2_0-60_el5_sme, e-smith-backup-2_2_0-26_el5_sme, e-smith-backup-2_2_0-25_el5_sme, e-smith-backup-2_2_0-66_el5_sme, e-smith-backup-2_2_0-65_el5_sme, e-smith-backup-2_2_0-80_el5_sme, e-smith-backup-2_2_0-44_el5_sme, e-smith-backup-2_2_0-83_el5_sme, e-smith-backup-2_2_0-41_el5_sme, e-smith-backup-2_2_0-52_el5_sme, e-smith-backup-2_2_0-82_el5_sme, e-smith-backup-2_2_0-38_el5_sme, e-smith-backup-2_2_0-88_el5_sme, e-smith-backup-2_2_0-74_el5_sme, e-smith-backup-2_2_0-55_el5_sme, e-smith-backup-2_2_0-84_el5_sme, e-smith-backup-2_2_0-63_el5_sme, e-smith-backup-2_2_0-87_el5_sme, e-smith-backup-2_2_0-64_el5_sme, e-smith-backup-2_2_0-43_el5_sme, e-smith-backup-2_2_0-48_el5_sme, e-smith-backup-2_2_0-36_el5_sme, e-smith-backup-2_2_0-81_el5_sme, e-smith-backup-2_2_0-68_el5_sme, e-smith-backup-2_2_0-35_el5_sme, e-smith-backup-2_2_0-86_el5_sme, e-smith-backup-2_2_0-34_el5_sme, e-smith-backup-2_2_0-50_el5_sme, e-smith-backup-2_2_0-51_el5_sme, e-smith-backup-2_2_0-71_el5_sme, e-smith-backup-2_2_0-61_el5_sme, e-smith-backup-2_2_0-57_el5_sme, e-smith-backup-2_2_0-78_el5_sme, e-smith-backup-2_2_0-73_el5_sme, e-smith-backup-2_2_0-79_el5_sme, e-smith-backup-2_2_0-39_el5_sme, e-smith-backup-2_2_0-33_el5_sme, e-smith-backup-2_2_0-75_el5_sme, e-smith-backup-2_2_0-28_el5_sme, e-smith-backup-2_2_0-76_el5_sme, e-smith-backup-2_2_0-56_el5_sme, e-smith-backup-2_2_0-58_el5_sme, e-smith-backup-2_2_0-45_el5_sme, e-smith-backup-2_2_0-59_el5_sme, e-smith-backup-2_2_0-32_el5_sme, e-smith-backup-2_2_0-53_el5_sme, e-smith-backup-2_2_0-67_el5_sme, e-smith-backup-2_2_0-42_el5_sme, e-smith-backup-2_2_0-29_el5_sme, e-smith-backup-2_2_0-70_el5_sme, e-smith-backup-2_2_0-77_el5_sme, e-smith-backup-2_2_0-54_el5_sme, e-smith-backup-2_2_0-85_el5_sme, e-smith-backup-2_2_0-69_el5_sme, e-smith-backup-2_2_0-37_el5_sme, e-smith-backup-2_2_0-31_el5_sme, e-smith-backup-2_2_0-49_el5_sme, e-smith-backup-2_2_0-47_el5_sme, e-smith-backup-2_2_0-46_el5_sme, HEAD
* Mon Jan 25 2010 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-25.sme
- Don't backup more than once per day [SME: 5445]

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

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