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

Annotation of /rpms/e-smith-backup/sme10/e-smith-backup-2.6.0.Do_Tar_Exclusion_In_Panel.patch

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


Revision 1.1 - (hide annotations) (download)
Sun Jul 31 07:26:33 2016 UTC (7 years, 10 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-29_el7_sme, e-smith-backup-2_6_0-9_el7_sme, e-smith-backup-2_6_0-4_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
* Sun Jul 31 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-4.sme
- Add or remove path in your backup by a file *.include and *.exclude
- Added e-smith-backup-2.6.0.Add_Or_Remove_Path_In_Backup.patch [SME: 9607]

1 stephdl 1.1 diff -Nur e-smith-backup-2.6.0.old/root/etc/e-smith/web/functions/backup e-smith-backup-2.6.0.new/root/etc/e-smith/web/functions/backup
2     --- e-smith-backup-2.6.0.old/root/etc/e-smith/web/functions/backup 2016-02-05 00:08:22.000000000 +0100
3     +++ e-smith-backup-2.6.0.new/root/etc/e-smith/web/functions/backup 2016-07-26 10:54:08.847578357 +0200
4     @@ -57,6 +57,8 @@
5     my @directories = $es_backup->restore_list;
6     @directories = grep { -e "/$_" } @directories;
7    
8     +my @backup_excludes = $es_backup->excludes;
9     +
10     # Unbuffer standard output so that files and directories are listed as
11     # they are restored
12     $| = 1;
13     @@ -460,6 +462,7 @@
14     StartEpochTime => $now,
15     });
16     my $CompressionLevel = $conf->get_prop("backupconsole", "CompressionLevel") || "-6";
17     + my @exclude = map (" --exclude=$_",@backup_excludes);
18    
19     # Dump the current mysql tables so that they are part of the image.
20     # The events handle cases where mysqld is not enabled, and/or is
21     @@ -495,7 +498,7 @@
22    
23     open(RD,
24     "/bin/tar --directory / --create @directories --file=-"
25     - . " | /usr/bin/gzip $CompressionLevel |"
26     + . "@exclude | /usr/bin/gzip $CompressionLevel |"
27     );
28    
29     while (<RD>)

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