aboutsummaryrefslogtreecommitdiff
path: root/files/handlers
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-08-16 23:16:41 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-08-16 23:16:41 -0300
commit547acfa6d492491c3eedfa7297faf3dc342b4303 (patch)
tree8836ac45a0995b9230c6262b3ed4afd98b1b1a65 /files/handlers
parentd1873d6dbb9e00e490696b8b4930e6b43b22df1a (diff)
downloadpuppet-backup-547acfa6d492491c3eedfa7297faf3dc342b4303.tar.gz
puppet-backup-547acfa6d492491c3eedfa7297faf3dc342b4303.tar.bz2
Handler fixes
Diffstat (limited to 'files/handlers')
-rw-r--r--files/handlers/rsync8
1 files changed, 4 insertions, 4 deletions
diff --git a/files/handlers/rsync b/files/handlers/rsync
index 8f638d7..d9973a0 100644
--- a/files/handlers/rsync
+++ b/files/handlers/rsync
@@ -412,7 +412,7 @@ function rotate_long {
fi
# Rotate the current list of backups, if we can.
- oldest=`find $backuproot -maxdepth 1 -type d -name $rottype'.*' | @SED@ 's/^.*\.//' | sort -n | tail -1`
+ oldest=`find $backuproot -maxdepth 1 -type d -name $rottype'.*' | sed 's/^.*\.//' | sort -n | tail -1`
[ "$oldest" == "" ] && oldest=0
for (( i=$oldest; i > 0; i-- )); do
if [ -d $dir.$i ]; then
@@ -460,7 +460,7 @@ function rotate_long {
for rottype in daily weekly monthly; do
max=$((keep${rottype}+1))
dir="$backuproot/$rottype"
- oldest=`find $backuproot -maxdepth 1 -type d -name $rottype'.*' | @SED@ 's/^.*\.//' | sort -n | tail -1`
+ oldest=`find $backuproot -maxdepth 1 -type d -name $rottype'.*' | sed 's/^.*\.//' | sort -n | tail -1`
[ "$oldest" == "" ] && oldest=0
# if we've rotated the last backup off the stack, remove it.
for (( i=$oldest; i >= $max; i-- )); do
@@ -513,7 +513,7 @@ function rotate_long_remote {
fi
# Rotate the current list of backups, if we can.
- oldest=\`find $backuproot -maxdepth 1 -type d -name \$rottype'.*' | @SED@ 's/^.*\.//' | sort -n | tail -1\`
+ oldest=\`find $backuproot -maxdepth 1 -type d -name \$rottype'.*' | sed 's/^.*\.//' | sort -n | tail -1\`
[ "\$oldest" == "" ] && oldest=0
for (( i=\$oldest; i > 0; i-- )); do
if [ -d \$dir.\$i ]; then
@@ -561,7 +561,7 @@ function rotate_long_remote {
for rottype in daily weekly monthly; do
max=\$((keep\${rottype}+1))
dir="$backuproot/\$rottype"
- oldest=\`find $backuproot -maxdepth 1 -type d -name \$rottype'.*' | @SED@ 's/^.*\.//' | sort -n | tail -1\`
+ oldest=\`find $backuproot -maxdepth 1 -type d -name \$rottype'.*' | sed 's/^.*\.//' | sort -n | tail -1\`
[ "\$oldest" == "" ] && oldest=0
# if we've rotated the last backup off the stack, remove it.
for (( i=\$oldest; i >= \$max; i-- )); do