]> gitweb.fluxo.info Git - backupninja.git/commitdiff
Quoting $starttime (upstream #3868)
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 6 Apr 2012 20:29:10 +0000 (17:29 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 12 Apr 2012 23:52:02 +0000 (20:52 -0300)
handlers/rsync.in

index 884a885f96fa6c20ea9d90a27744efa19a8e8dd4..68ab392d4c3197e78455d5f2d2713c982460ac05 100644 (file)
@@ -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