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

Diff 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 | View Patch Patch

Revision 1.1 by wellsi, Thu Dec 12 06:50:27 2013 UTC Revision 1.2 by wellsi, Sat Jan 4 03:02:08 2014 UTC
# Line 1  Line 1 
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  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  --- e-smith-backup-2.2.0.old/root/etc/e-smith/events/actions/workstation-backup-dar     2014-01-03 17:13:10.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  +++ e-smith-backup-2.2.0/root/etc/e-smith/events/actions/workstation-backup-dar 2014-01-03 17:19:51.000000000 -0800
4  @@ -214,6 +214,11 @@  @@ -213,7 +213,21 @@
5     if ($incnum == 0)
6   {   {
7       $setnum %= $setsmax;       $setnum %= $setsmax;
8       ++$setnum;  -    ++$setnum;
9    +    $setnum++;
10    +    
11  +    # Remove set0 if reached $setsmax as set0 is deprecated and no longer valid.  +    # Remove set0 if reached $setsmax as set0 is deprecated and no longer valid.
12  +    if ($setnum == $setsmax)  +    if ($setnum == $setsmax && -d "$mntdir/$id/set0")
13  +    {  +    {
14  +        &remove_tree ("$mntdir/$id/set0");  +        # if $setsmax already exists, just delete set0
15    +        if (-d "$mntdir/$id/set$setsmax")
16    +        {
17    +            &remove_tree ("$mntdir/$id/set0");
18    +        }
19    +        else # move set0 to $setsmax, it will be deleted after a successful backup
20    +        {
21    +            move("$mntdir/$id/set0", "$mntdir/$id/set$setsmax");
22    +        }
23  +    }  +    }
24   }   }
25    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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