/[smecontribs]/rpms/smeserver-rdiff-backup/contribs7/smeserver-rdiff-backup-0.0.1-removeolder.patch
ViewVC logotype

Annotation of /rpms/smeserver-rdiff-backup/contribs7/smeserver-rdiff-backup-0.0.1-removeolder.patch

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


Revision 1.3 - (hide annotations) (download)
Tue Nov 25 16:20:29 2008 UTC (16 years ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
Restore

1 slords 1.1 diff -Nur -x '*.orig' -x '*.rej' smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/defaults/rdiff-backup/RemoveOlderThan mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/defaults/rdiff-backup/RemoveOlderThan
2     --- smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/defaults/rdiff-backup/RemoveOlderThan 1970-01-01 10:00:00.000000000 +1000
3     +++ mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/defaults/rdiff-backup/RemoveOlderThan 2006-05-18 13:24:54.954274229 +1000
4     @@ -0,0 +1 @@
5     +6W
6     diff -Nur -x '*.orig' -x '*.rej' smeserver-rdiff-backup-0.0.1/root/sbin/e-smith/do_rdiff-backup mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/sbin/e-smith/do_rdiff-backup
7     --- smeserver-rdiff-backup-0.0.1/root/sbin/e-smith/do_rdiff-backup 2006-05-18 13:38:50.105480262 +1000
8     +++ mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/sbin/e-smith/do_rdiff-backup 2006-05-18 13:38:09.014603428 +1000
9     @@ -26,9 +26,12 @@
10    
11     RDIFF_BACKUP="/usr/bin/rdiff-backup"
12     OPTIONS="--include-globbing-filelist /etc/rdiff-backup.filelist"
13     +
14     OPTIONS="$OPTIONS --exclude /"
15     OPTIONS="$OPTIONS $FORCE"
16    
17     +REMOVE_OLDER="--remove-older-than $(/sbin/e-smith/config getprop rdiff-backup RemoveOlderThan) --force"
18     +
19     /sbin/e-smith/signal-event pre-backup || exit 1
20    
21     if [ $(/sbin/e-smith/config getprop rdiff-backup EnableLocal) = 'yes' ]
22     @@ -42,6 +45,8 @@
23     fi
24    
25     $RDIFF_BACKUP $OPTIONS / $LOCAL_PATH/$ID || exit 3
26     +
27     + $RDIFF_BACKUP $REMOVE_OLDER $LOCAL_PATH/$ID || exit 4
28     fi
29    
30     if [ $(/sbin/e-smith/config getprop rdiff-backup EnableRemote) = 'yes' ]
31     @@ -54,8 +59,10 @@
32     then
33     echo "$0: Skipping remote backup to localhost"
34     else
35     - $RDIFF_BACKUP $OPTIONS / $REMOTE_HOST::$REMOTE_PATH/$ID || exit 4
36     + $RDIFF_BACKUP $OPTIONS / $REMOTE_HOST::$REMOTE_PATH/$ID || exit 5
37     +
38     + $RDIFF_BACKUP $REMOVE_OLDER $REMOTE_HOST::$REMOTE_PATH/$ID || exit 6
39     fi
40     fi
41    
42     -/sbin/e-smith/signal-event post-backup || exit 5
43     +/sbin/e-smith/signal-event post-backup || exit 7

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