diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2007-05-12 08:33:02 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2007-05-12 08:33:02 +0000 |
commit | 22a70c01175c0804c841ff52b15944133ac883e4 (patch) | |
tree | b8847d65e9cbc56b64b610747ee4e28d847804b0 /app-backup/flexbackup/files | |
parent | Stable on mips. (diff) | |
download | gentoo-2-22a70c01175c0804c841ff52b15944133ac883e4.tar.gz gentoo-2-22a70c01175c0804c841ff52b15944133ac883e4.tar.bz2 gentoo-2-22a70c01175c0804c841ff52b15944133ac883e4.zip |
New revision addresses bug #178126 (subtree pruning issue, minor documentation enhancements).
(Portage version: 2.1.2.7)
Diffstat (limited to 'app-backup/flexbackup/files')
-rw-r--r-- | app-backup/flexbackup/files/digest-flexbackup-1.2.0-r1 | 3 | ||||
-rw-r--r-- | app-backup/flexbackup/files/digest-flexbackup-1.2.1-r1 | 3 | ||||
-rw-r--r-- | app-backup/flexbackup/files/digest-flexbackup-1.2.1-r3 | 3 | ||||
-rw-r--r-- | app-backup/flexbackup/files/digest-flexbackup-1.2.1-r4 | 3 | ||||
-rw-r--r-- | app-backup/flexbackup/files/digest-flexbackup-1.2.1-r5 (renamed from app-backup/flexbackup/files/digest-flexbackup-1.2.1) | 0 | ||||
-rw-r--r-- | app-backup/flexbackup/files/flexbackup-1.2.1-prune.patch | 136 |
6 files changed, 136 insertions, 12 deletions
diff --git a/app-backup/flexbackup/files/digest-flexbackup-1.2.0-r1 b/app-backup/flexbackup/files/digest-flexbackup-1.2.0-r1 deleted file mode 100644 index bd2be7a50e2f..000000000000 --- a/app-backup/flexbackup/files/digest-flexbackup-1.2.0-r1 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 a5e57e7070ad3da1b5a9e0aed2aeda83 flexbackup-1.2.0.tar.gz 73170 -RMD160 ff36fc51a28520155866006d7d77651bb2f258fa flexbackup-1.2.0.tar.gz 73170 -SHA256 50a424d1faa277d7c15199f59e26049f7a99c896351324304edfec6c0cbd22da flexbackup-1.2.0.tar.gz 73170 diff --git a/app-backup/flexbackup/files/digest-flexbackup-1.2.1-r1 b/app-backup/flexbackup/files/digest-flexbackup-1.2.1-r1 deleted file mode 100644 index 92deefe369f4..000000000000 --- a/app-backup/flexbackup/files/digest-flexbackup-1.2.1-r1 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 4955c89dbee354248f354a9bf0a480dd flexbackup-1.2.1.tar.gz 80158 -RMD160 d2a56ce6a3770498ef96ffbf75f65026b04f492c flexbackup-1.2.1.tar.gz 80158 -SHA256 58282b21985be75f1219c5ff4906d217055ed8627ea3e2ffdfe7a2393bc9d2c3 flexbackup-1.2.1.tar.gz 80158 diff --git a/app-backup/flexbackup/files/digest-flexbackup-1.2.1-r3 b/app-backup/flexbackup/files/digest-flexbackup-1.2.1-r3 deleted file mode 100644 index 92deefe369f4..000000000000 --- a/app-backup/flexbackup/files/digest-flexbackup-1.2.1-r3 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 4955c89dbee354248f354a9bf0a480dd flexbackup-1.2.1.tar.gz 80158 -RMD160 d2a56ce6a3770498ef96ffbf75f65026b04f492c flexbackup-1.2.1.tar.gz 80158 -SHA256 58282b21985be75f1219c5ff4906d217055ed8627ea3e2ffdfe7a2393bc9d2c3 flexbackup-1.2.1.tar.gz 80158 diff --git a/app-backup/flexbackup/files/digest-flexbackup-1.2.1-r4 b/app-backup/flexbackup/files/digest-flexbackup-1.2.1-r4 deleted file mode 100644 index 92deefe369f4..000000000000 --- a/app-backup/flexbackup/files/digest-flexbackup-1.2.1-r4 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 4955c89dbee354248f354a9bf0a480dd flexbackup-1.2.1.tar.gz 80158 -RMD160 d2a56ce6a3770498ef96ffbf75f65026b04f492c flexbackup-1.2.1.tar.gz 80158 -SHA256 58282b21985be75f1219c5ff4906d217055ed8627ea3e2ffdfe7a2393bc9d2c3 flexbackup-1.2.1.tar.gz 80158 diff --git a/app-backup/flexbackup/files/digest-flexbackup-1.2.1 b/app-backup/flexbackup/files/digest-flexbackup-1.2.1-r5 index 92deefe369f4..92deefe369f4 100644 --- a/app-backup/flexbackup/files/digest-flexbackup-1.2.1 +++ b/app-backup/flexbackup/files/digest-flexbackup-1.2.1-r5 diff --git a/app-backup/flexbackup/files/flexbackup-1.2.1-prune.patch b/app-backup/flexbackup/files/flexbackup-1.2.1-prune.patch new file mode 100644 index 000000000000..35081932e6f1 --- /dev/null +++ b/app-backup/flexbackup/files/flexbackup-1.2.1-prune.patch @@ -0,0 +1,136 @@ +diff -ub flexbackup-old/flexbackup flexbackup-new/flexbackup +--- flexbackup-old/flexbackup 2007-05-11 20:14:13.000000000 -0400 ++++ flexbackup-new/flexbackup 2007-05-11 20:22:36.000000000 -0400 +@@ -3085,7 +3085,6 @@ + $::read_cmd = "$bufcmd $read_flags"; + + } elsif ($cfg::buffer eq "mbuffer") { +- + $::path{'mbuffer'} = &checkinpath('mbuffer'); + push(@::remoteprogs, $::path{'mbuffer'}); + +@@ -3101,7 +3100,6 @@ + } + } + } else { +- + # If buffering disabled, use dd or cat depending on if blocking turned off on not + if ($cfg::blksize eq '0') { + $::buffer_cmd = ""; +@@ -4887,18 +4885,19 @@ + my $rex; + # FreeBSD needs -E (above) and no backslashes around the (|) chars + if ($::uname =~ /FreeBSD/) { +- $rex = '-regex "\./('; ++ $rex = '"\./('; + $rex .= join('|', keys %{$::prune{$prunekey}}); +- $rex .= ')/.*" '; ++ $rex .= ')"'; + } else { +- $rex = '-regex "\./\('; ++ $rex = '"\./\('; + $rex .= join('\|', keys %{$::prune{$prunekey}}); +- $rex .= '\)/.*" '; ++ $rex .= '\)"'; + } + # Show what the darn thing is constructing for prune expressions. +- &log("| \"find\" regex for pruning is: $rex"); +- $cmd .= $rex; +- $cmd .= '-prune -o '; ++ &log("| \"find\" regex for pruning is:"); ++ &log("| $rex"); ++ &line(); ++ $cmd .= '-regex ' . $rex . ' -prune -o '; + } else { + # Show what the darn thing is constructing for prune expressions. + &log("| No pruning defined for this tree."); +diff -ub flexbackup-old/flexbackup.1 flexbackup-new/flexbackup.1 +--- flexbackup-old/flexbackup.1 2007-05-11 20:14:13.000000000 -0400 ++++ flexbackup-new/flexbackup.1 2007-05-11 20:09:58.000000000 -0400 +@@ -48,7 +48,7 @@ + Extract (restore) the files listed in text file \(dqfilelist\(dq into your + current working directory. + .TP +-\fBflexbackup\fR \fI-extract\fR \fI-flist\fR <\fIfilename\fR> ++\fBflexbackup\fR \fI-extract\fR \fI-onefile\fR <\fIfilename\fR> + Extract (restore) the single file named \(dqfilename\(dq into your current + working directory. + .TP +diff -ub flexbackup-old/flexbackup.conf flexbackup-new/flexbackup.conf +--- flexbackup-old/flexbackup.conf 2007-05-11 20:14:13.000000000 -0400 ++++ flexbackup-new/flexbackup.conf 2007-05-11 20:26:48.000000000 -0400 +@@ -28,10 +28,10 @@ + + # Subtree pruning + # A space-separated list of directories to prune from each backup. +-# Key is a filesystem or host:dir spec as outlined above +-# regular expressions allowed (not shell-type wildcards!) ++# Key is a filesystem or host:dir spec as outlined above. ++# Regular expressions are allowed (not shell-type wildcards!) + # +-# Note: These directories are actually regular expressions and must ++# Note: These "directories" are actually regular expressions and must + # match "find" output relative to the path of the current backup set. This + # means that different exclusions are needed for different backup sets. + # This is a little tricky, so, read on. +@@ -46,9 +46,11 @@ + # + # then, the constructed -regex argument to "find" looks like this + # +-# -regex "\./\(one\|two\|three\)/.*" ++# -regex "\./(one|two|three)" + # +-# The last thing you need to know is that FlexBackup only uses the prune ++# (with characters escaped as necessary depending on your environment). ++# ++# Another thing you need to know is that FlexBackup only uses the prune + # terms that match the current base directory in the set you're backing + # up. For example, if your backup set definition looks like this + # +@@ -66,9 +68,16 @@ + # + # $prune{'/'} = "home/bert home/ernie var/tmp"; + # +-# does not work, unless, of course, your backup set is backing up "/", ++# doesn't work, unless, of course, your backup set is backing up "/", + # which our example is not. + # ++# Many other complex and abstruse variations are possible. Here's one ++# interesting corner case. If you want to preserve a directory but none of its ++# contents, you can do it. Picking on ernie from our previous example, preserve ++# only his home directory: ++# ++# $prune{'/home'} = "ernie/.*"; ++# + $prune{'/'} = "tmp proc"; + + # Compression +@@ -138,10 +147,10 @@ + # Matches paths, not filenames, so put .* on the front/back as needed. + # Comment these out to exclude nothing. + # +-# Note: The first example line breaks portage in a restored backup because +-# "/usr/lib/portage/pym/cache" is not backed up. Way too general! The moral +-# of this story is, be very careful with global excludes. The second example +-# is probably okay. ++# Gentoo note: The first example line breaks portage in a restored backup ++# because "/usr/lib/portage/pym/cache" is not backed up. Way too general! ++# The moral of this story is, be very careful with global excludes. The ++# second example is probably okay. + # $exclude_expr[0] = '.*/[Cc]ache/.*'; + # $exclude_expr[1] = '.*~$'; + +diff -ub flexbackup-old/flexbackup.conf.5 flexbackup-new/flexbackup.conf.5 +--- flexbackup-old/flexbackup.conf.5 2007-05-11 20:14:13.000000000 -0400 ++++ flexbackup-new/flexbackup.conf.5 2007-05-11 20:09:58.000000000 -0400 +@@ -40,7 +40,9 @@ + \fB$prune{\fI'/'\fR}\fR = \fI'tmp proc'\fR; + Configure subtree pruning. A space-separated list of directories to prune from + each backup. Key is a filesystem/directory or \(dqhost:directory\(dq spec as +-outlined above regular expressions allowed (not shell-type wildcards!). ++outlined above. Regular expressions allowed (not shell-type wildcards!). There ++is additional explanation (and a lot of examples) in the provided configuration ++file. + .TP + \fB$compress\fR = \fI'false|gzip|bzip2|lzop|zip|compress|hardware'\fR; + .TQ |