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

Contents of /rpms/e-smith-backup/sme8/e-smith-backup-2.2.0-workstation-setNumbering.patch

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


Revision 1.1 - (show annotations) (download)
Thu Dec 12 06:50:27 2013 UTC (10 years, 10 months ago) by wellsi
Branch: MAIN
CVS Tags: e-smith-backup-2_2_0-77_el5_sme, e-smith-backup-2_2_0-78_el5_sme, e-smith-backup-2_2_0-79_el5_sme, e-smith-backup-2_2_0-85_el5_sme, e-smith-backup-2_2_0-81_el5_sme, e-smith-backup-2_2_0-80_el5_sme, e-smith-backup-2_2_0-86_el5_sme, e-smith-backup-2_2_0-83_el5_sme, e-smith-backup-2_2_0-82_el5_sme, e-smith-backup-2_2_0-88_el5_sme, e-smith-backup-2_2_0-84_el5_sme, e-smith-backup-2_2_0-87_el5_sme, HEAD
* Wed Dec 11 2013 Ian Wells <esmith@wellsi.com> 2.2.0-77.sme
- Workstation Backup, count backup sets from 1 [SME: 7762]
  Set numbering patch by Dave Liquorice

1 diff -ruN e-smith-backup-2.2.0.old/root/etc/e-smith/events/actions/workstation-backup-dar e-smith-backup-2.2.0/root/etc/e-smith/events/actions/workstation-backup-dar
2 --- e-smith-backup-2.2.0.old/root/etc/e-smith/events/actions/workstation-backup-dar 2013-12-11 22:11:21.000000000 -0800
3 +++ e-smith-backup-2.2.0/root/etc/e-smith/events/actions/workstation-backup-dar 2013-12-11 22:18:00.000000000 -0800
4 @@ -74,7 +74,7 @@
5 my $password = $backupwk->prop('Password');
6 my $setsmax = $backupwk->prop('SetsMax') || 1;
7 my $daysinset = $backupwk->prop('DaysInSet') || 1;
8 -my $setnum = $backupwk->prop('SetNum'); $setnum = ($setsmax-1) unless defined $setnum;
9 +my $setnum = $backupwk->prop('SetNum'); $setnum = $setsmax unless defined $setnum;
10 my $incnum = $backupwk->prop('IncNum'); $incnum = ($daysinset-1) unless defined $incnum;
11 my $timeout = (($backupwk->prop('Timeout') * 3600) - 30) || '88500';
12 my $inconly = $backupwk->prop('IncOnlyTimeout') || 'no';
13 @@ -212,11 +212,11 @@
14 ($fullday == 7 && $incnum >= $daysinset);
15 if ($incnum == 0)
16 {
17 - ++$setnum;
18 $setnum %= $setsmax;
19 + ++$setnum;
20 }
21
22 -$report .= sprintf("Using set number %d of %d\n", $setnum + 1, $setsmax);
23 +$report .= sprintf("Using set number %d of %d\n", $setnum, $setsmax);
24 if ($incnum == 0)
25 {
26 $report .= "Attempt full backup \n";

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