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

Annotation of /rpms/smeserver-rdiff-backup/contribs7/smeserver-rdiff-backup-0.0.1-backuptime.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/migrate/rdiff-backup mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/migrate/rdiff-backup
2     --- smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/migrate/rdiff-backup 2006-05-18 14:47:50.579390556 +1000
3     +++ mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/migrate/rdiff-backup 1970-01-01 10:00:00.000000000 +1000
4     @@ -1,7 +0,0 @@
5     -{
6     - my $backup_path = $DB->get_prop_and_delete('rdiff-backup', 'BackupPath');
7     -
8     - return unless $backup_path;
9     -
10     - $DB->set_prop('rdiff-backup', 'LocalPath', $backup_path);
11     -}
12     diff -Nur -x '*.orig' -x '*.rej' smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/migrate/rdiff-backup-path mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/migrate/rdiff-backup-path
13     --- smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/migrate/rdiff-backup-path 1970-01-01 10:00:00.000000000 +1000
14     +++ mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/migrate/rdiff-backup-path 2006-05-18 14:35:04.150506143 +1000
15     @@ -0,0 +1,7 @@
16     +{
17     + my $backup_path = $DB->get_prop_and_delete('rdiff-backup', 'BackupPath');
18     +
19     + return unless $backup_path;
20     +
21     + $DB->set_prop('rdiff-backup', 'LocalPath', $backup_path);
22     +}
23     diff -Nur -x '*.orig' -x '*.rej' smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/migrate/rdiff-backup-time mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/migrate/rdiff-backup-time
24     --- smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/migrate/rdiff-backup-time 1970-01-01 10:00:00.000000000 +1000
25     +++ mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/etc/e-smith/db/configuration/migrate/rdiff-backup-time 2006-05-18 14:44:53.971061685 +1000
26     @@ -0,0 +1,11 @@
27     +{
28     + my $rdiff_rec = $DB->get('rdiff-backup')
29     + || $DB->new_record('rdiff-backup', {type => 'service'});
30     +
31     + my %props = $rdiff_rec->props();
32     +
33     + $props{Hour} ||= int(rand(7)); # Early in the morning
34     + $props{Minute} ||= int(rand(60));
35     +
36     + $rdiff_rec->merge_props(%props);
37     +}
38     diff -Nur -x '*.orig' -x '*.rej' smeserver-rdiff-backup-0.0.1/root/etc/e-smith/templates/etc/crontab/rdiff-backup mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/etc/e-smith/templates/etc/crontab/rdiff-backup
39     --- smeserver-rdiff-backup-0.0.1/root/etc/e-smith/templates/etc/crontab/rdiff-backup 2006-04-25 22:52:41.000000000 +1000
40     +++ mezzanine_patched_smeserver-rdiff-backup-0.0.1/root/etc/e-smith/templates/etc/crontab/rdiff-backup 2006-05-18 14:47:02.654713359 +1000
41     @@ -2,5 +2,8 @@
42     return "# rdiff-backup disabled"
43     unless ${'rdiff-backup'}{status} eq 'enabled';
44    
45     - return '5 1 * * * root /sbin/e-smith/do_rdiff-backup';
46     + my $hour = ${'rdiff-backup'}{Hour} || 1;
47     + my $minute = ${'rdiff-backup'}{Minute} || 5;
48     +
49     + return "$minute $hour * * * root /sbin/e-smith/do_rdiff-backup";
50     }

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