/[smeserver]/rpms/e-smith-backup/sme10/e-smith-backup-2.6.0.Do_Dar_Exclusion.patch
ViewVC logotype

Contents of /rpms/e-smith-backup/sme10/e-smith-backup-2.6.0.Do_Dar_Exclusion.patch

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


Revision 1.2 - (show annotations) (download)
Tue Aug 2 20:45:19 2016 UTC (8 years, 3 months ago) by stephdl
Branch: MAIN
CVS Tags: e-smith-backup-2_6_0-24_el7_sme, e-smith-backup-2_6_0-19_el7_sme, e-smith-backup-2_6_0-17_el7_sme, e-smith-backup-2_6_0-30_el7_sme, e-smith-backup-2_6_0-29_el7_sme, e-smith-backup-2_6_0-9_el7_sme, e-smith-backup-2_6_0-15_el7_sme, e-smith-backup-2_6_0-18_el7_sme, e-smith-backup-2_6_0-16_el7_sme, e-smith-backup-2_6_0-11_el7_sme, e-smith-backup-2_6_0-14_el7_sme, e-smith-backup-2_6_0-5_el7_sme, e-smith-backup-2_6_0-8_el7_sme, e-smith-backup-2_6_0-20_el7_sme, e-smith-backup-2_6_0-23_el7_sme, e-smith-backup-2_6_0-10_el7_sme, e-smith-backup-2_6_0-21_el7_sme, e-smith-backup-2_6_0-13_el7_sme, e-smith-backup-2_6_0-28_el7_sme, e-smith-backup-2_6_0-12_el7_sme, e-smith-backup-2_6_0-22_el7_sme, e-smith-backup-2_6_0-27_el7_sme, e-smith-backup-2_6_0-25_el7_sme, e-smith-backup-2_6_0-6_el7_sme, e-smith-backup-2_6_0-7_el7_sme, e-smith-backup-2_6_0-26_el7_sme, HEAD
Changes since 1.1: +8 -5 lines
* Tue Aug 02 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-5.sme
- Remove the dar exclusion message in the email if there is no exclusion.
- Modified e-smith-backup-2.6.0.Do_Dar_Exclusion.patch [SME: 9633]
- Added two commented files backup.{include,exclude} in /etc/backup-data.d
- Modified e-smith-backup-2.6.0.Add_Or_Remove_Path_In_Backup.patch [SME: 9607]

1 diff -Nur e-smith-backup-2.6.0.old/createlinks e-smith-backup-2.6.0.new/createlinks
2 --- e-smith-backup-2.6.0.old/createlinks 2013-02-13 16:21:38.000000000 +0100
3 +++ e-smith-backup-2.6.0.new/createlinks 2016-06-30 15:43:04.012136084 +0200
4 @@ -34,6 +34,7 @@
5
6 templates2events("/etc/crontab", $event);
7 templates2events("/etc/dar/CIFScredentials", $event);
8 +templates2events("/etc/dar/DailyBackup.dcf", $event);
9
10 #--------------------------------------------------
11 # events for pre-backup action
12 diff -Nur e-smith-backup-2.6.0.old/root/etc/e-smith/events/actions/workstation-backup-dar e-smith-backup-2.6.0.new/root/etc/e-smith/events/actions/workstation-backup-dar
13 --- e-smith-backup-2.6.0.old/root/etc/e-smith/events/actions/workstation-backup-dar 2016-02-05 00:08:22.000000000 +0100
14 +++ e-smith-backup-2.6.0.new/root/etc/e-smith/events/actions/workstation-backup-dar 2016-07-28 11:02:39.939632127 +0200
15 @@ -30,6 +30,7 @@
16 use POSIX qw(:sys_wait_h strftime);
17 use File::Glob qw(bsd_glob);
18 use esmith::ConfigDB;
19 +use esmith::Backup;
20
21 sub ldie;
22 sub start_dar_killer;
23 @@ -66,6 +67,8 @@
24 my $mntdir = $backupwk->prop('Mount') || '/mnt/smb';
25 $mntdir = "\/$smbshare" if ($VFSType eq 'usb'); # ToDo change to $backupwk->prop('Mount')
26 my $deleteearly = $backupwk->prop('DeleteEarly') || 'false';
27 +my @backup_excludes = esmith::Backup->excludes;
28 +@backup_excludes = map "\t/$_\n", sort @backup_excludes;
29
30 my $report = "From: $frommail\n";
31 $report .= "To: $tomail\n";
32 @@ -74,6 +77,13 @@
33 $report .= "DAILY BACKUP TO WORKSTATION REPORT \n";
34 $report .= "================================== \n";
35 $report .= "Backup of $id started at " .localtime() . "\n";
36 +$report .= "================================== \n";
37 +
38 +if (@backup_excludes) {
39 + $report .= "Some parts are excluded of your backup: \n";
40 + $report .= "@backup_excludes";
41 + $report .= "================================== \n";
42 + }
43
44 # ping the SMB Host to see if it is awake
45 $report .= wol ($ether,$smbhost,$smbhostmac,$smbhostdelay);
46 diff -Nur e-smith-backup-2.6.0.old/root/etc/e-smith/templates/etc/dar/DailyBackup.dcf/45prune e-smith-backup-2.6.0.new/root/etc/e-smith/templates/etc/dar/DailyBackup.dcf/45prune
47 --- e-smith-backup-2.6.0.old/root/etc/e-smith/templates/etc/dar/DailyBackup.dcf/45prune 1970-01-01 01:00:00.000000000 +0100
48 +++ e-smith-backup-2.6.0.new/root/etc/e-smith/templates/etc/dar/DailyBackup.dcf/45prune 2016-06-30 15:54:52.836309465 +0200
49 @@ -0,0 +1,7 @@
50 +{
51 + use esmith::Backup;
52 + my @exclusion_list = esmith::Backup->excludes;
53 + foreach my $dir ( @exclusion_list ) {
54 + $OUT .= "--prune $dir\n";
55 + }
56 +}

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