From efcf20fb14d56ec510b5de492cfff3b0ad371a3b Mon Sep 17 00:00:00 2001
From: Per Cederqvist <ceder@lysator.liu.se>
Date: Thu, 9 Aug 2007 08:24:38 +0000
Subject: [PATCH] Fix --start-time.

The "start immediately if the previous backup took more than 24
hours" logic did not work since the flag file was never created.

* backup-repeatedly: Touch the $LASTSTART flag file when a backup run
  starts, so that the --start-time option can work as intended.
---
 ChangeLog         | 7 +++++++
 backup-repeatedly | 2 ++
 2 files changed, 9 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index c189c90..1c939e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-09  Per Cederqvist  <ceder@ryttargardskyrkan.se>
+
+	The "start immediately if the previous backup took more than 24
+	hours" logic did not work since the flag file was never created.
+	* backup-repeatedly: Touch the $LASTSTART flag file when a backup
+	run starts, so that the --start-time option can work as intended.
+
 2007-08-07  Per Cederqvist  <ceder@ryttargardskyrkan.se>
 
 	Improve the --start-time option.
diff --git a/backup-repeatedly b/backup-repeatedly
index e01e84f..fc16a71 100755
--- a/backup-repeatedly
+++ b/backup-repeatedly
@@ -53,6 +53,8 @@ do
 
   ctr=`expr $ctr + 1`
 
+  touch $LASTSTART
+
   echo
   echo Running all jobs.  Repeat count: $ctr.
   echo
-- 
GitLab