Skip to content
Snippets Groups Projects
Commit 317f1cbd authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Improve the --start-time option.

* backup-repeatedly: Exit immediately if the finish or stop file
  exists, and not after the long wait implied by --start-time.
parent a0c5e1ca
No related branches found
No related tags found
No related merge requests found
2007-08-07 Per Cederqvist <ceder@ryttargardskyrkan.se> 2007-08-07 Per Cederqvist <ceder@ryttargardskyrkan.se>
Improve the --start-time option.
* backup-repeatedly: Exit immediately if the finish or stop file
exists, and not after the long wait implied by --start-time.
Added support for starting the backups at a predefined time. Added support for starting the backups at a predefined time.
* backup-repeatedly: New option: --start-time, that specifies the * backup-repeatedly: New option: --start-time, that specifies the
hour and minute when the backup should start. hour and minute when the backup should start.
......
...@@ -23,6 +23,9 @@ esac ...@@ -23,6 +23,9 @@ esac
while : while :
do do
[ -f /opt/LYSrdiff/etc/finish ] && break
[ -f /opt/LYSrdiff/etc/stop ] && break
if [ -n "$starttime" ] if [ -n "$starttime" ]
then then
if [ -z "`find $LASTSTART -ctime +0 -print 2>/dev/null`" ] if [ -z "`find $LASTSTART -ctime +0 -print 2>/dev/null`" ]
...@@ -49,8 +52,6 @@ do ...@@ -49,8 +52,6 @@ do
fi fi
ctr=`expr $ctr + 1` ctr=`expr $ctr + 1`
[ -f /opt/LYSrdiff/etc/finish ] && break
[ -f /opt/LYSrdiff/etc/stop ] && break
echo echo
echo Running all jobs. Repeat count: $ctr. echo Running all jobs. Repeat count: $ctr.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment