aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2007-07-28 11:36:40 +0000
committerMicah Anderson <micah@riseup.net>2007-07-28 11:36:40 +0000
commite3454782c54d3beb93b6f14d6ac4cf7ef8cd5645 (patch)
tree4371312efd2f167dd3e27f1eaae565e5426c5ebd /handlers
parent2b522785762c2ba646b8281d0cd1bc35d0320890 (diff)
downloadbackupninja-e3454782c54d3beb93b6f14d6ac4cf7ef8cd5645.tar.gz
backupninja-e3454782c54d3beb93b6f14d6ac4cf7ef8cd5645.tar.bz2
add patch to ignore rdiff minor version levels
Diffstat (limited to 'handlers')
-rw-r--r--handlers/rdiff4
1 files changed, 2 insertions, 2 deletions
diff --git a/handlers/rdiff b/handlers/rdiff
index 52637cd..46cae49 100644
--- a/handlers/rdiff
+++ b/handlers/rdiff
@@ -32,12 +32,12 @@ function get_version() {
# if user or host is missing, returns the local version.
if [ "$#" -lt 2 ]; then
debug "$RDIFFBACKUP -V"
- echo `$RDIFFBACKUP -V`
+ echo `$RDIFFBACKUP -V | cut -d. -f1,2`
else
local user=$1
local host=$2
debug "ssh $sshoptions $host -l $user '$RDIFFBACKUP -V'"
- echo `ssh $sshoptions $host -l $user "$RDIFFBACKUP -V | grep rdiff-backup"`
+ echo `ssh $sshoptions $host -l $user "$RDIFFBACKUP -V | grep rdiff-backup | cut -d. -f1,2"`
fi
}