aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-04-06 17:29:10 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-04-12 20:52:02 -0300
commit29286c7c3edefc3d77ea529bbe325718cace64db (patch)
tree11e7859eca77db6770eeb9c761e4cd1159c28551 /handlers
parentc9aa8b1d6f809ab672032a020a476185d095de3c (diff)
downloadbackupninja-29286c7c3edefc3d77ea529bbe325718cace64db.tar.gz
backupninja-29286c7c3edefc3d77ea529bbe325718cace64db.tar.bz2
Quoting $starttime (upstream #3868)
Diffstat (limited to 'handlers')
-rw-r--r--handlers/rsync.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/handlers/rsync.in b/handlers/rsync.in
index 884a885..68ab392 100644
--- a/handlers/rsync.in
+++ b/handlers/rsync.in
@@ -830,7 +830,7 @@ function update_metadata {
# finished, otherwise daily rotations might not take place.
# If we used backup end time, in the next handler run
# we might not have $now - $created >= 24:00
- echo $starttime > $metadata/created
+ echo "$starttime" > $metadata/created
$touch $backupdir/$SECTION/$suffix
else
folder="`echo $dest_path | cut -d : -f 2`"
@@ -844,7 +844,7 @@ function update_metadata {
# finished, otherwise daily rotations might not take place.
# If we used backup end time, in the next handler run
# we might not have $now - $created >= 24:00
- echo $starttime > $metadata/created
+ echo "$starttime" > $metadata/created
##### END REMOTE SCRIPT #######
EOF
) | (while read a; do passthru $a; done)
@@ -1111,7 +1111,7 @@ stop_services
mount_rw
starttime="`date +%c%n%s`"
-echo "Starting backup at `echo $starttime | head -n 1`" >> $log
+echo "Starting backup at `echo "$starttime" | head -n 1`" >> $log
for SECTION in $include; do