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

Contents of /rpms/e-smith-backup/sme8/e-smith-backup-2.2.0-workstation-removeSet0.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, 6 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
* 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:22:38.000000000 -0800
3 +++ e-smith-backup-2.2.0/root/etc/e-smith/events/actions/workstation-backup-dar 2013-12-11 22:30:12.000000000 -0800
4 @@ -214,6 +214,11 @@
5 {
6 $setnum %= $setsmax;
7 ++$setnum;
8 + # Remove set0 if reached $setsmax as set0 is deprecated and no longer valid.
9 + if ($setnum == $setsmax)
10 + {
11 + &remove_tree ("$mntdir/$id/set0");
12 + }
13 }
14
15 $report .= sprintf("Using set number %d of %d\n", $setnum, $setsmax);

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