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

Added a top-level script that runs backups repeatedly.

* backup-repeatedly: New file.
parent 30f7d067
No related branches found
No related tags found
No related merge requests found
2006-12-19 Per Cederqvist <ceder@sedesopim.lysator.liu.se>
Added a top-level script that runs backups repeatedly.
* backup-repeatedly: New file.
Get rid of obsolete status files and backups.
* lysrdiff-move-obsolete: New script. Move backups that are no
longer mentioned in the task file to a separate place.
......
......@@ -4,6 +4,7 @@ all:;
install: install-one-task
cp backup-all $(BINDIR)/
cp backup-repeatedly $(BINDIR)/
cp distribute-tasks $(BINDIR)/
cp fetch-backup-work $(BINDIR)/
cp lysrdiff-status $(BINDIR)/
......
#!/bin/sh
while [ ! -f /nobackup/backup.lysator/etc/stop ]
do
echo
echo Running all jobs.
echo
/nobackup/backup.lysator/bin/backup-all 0 1
[ -f /nobackup/backup.lysator/etc/finish ] && break
echo
echo Retrying failed jobs.
echo
/nobackup/backup.lysator/bin/backup-all --failed 0 1
[ -f /nobackup/backup.lysator/etc/finish ] && break
echo
echo Retrying jobs with warnings.
echo
/nobackup/backup.lysator/bin/backup-all --retry 0 1
[ -f /nobackup/backup.lysator/etc/finish ] && break
echo
echo Sleeping one hour.
echo
sleep 3600
[ -f /nobackup/backup.lysator/etc/finish ] && break
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment