Commit d948fcbe authored by bescoto's avatar bescoto

Added nice error message if two backups within one second


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@713 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 14d78769
......@@ -424,6 +424,9 @@ def backup_final_init(rpout):
Log.open_logfile(Globals.rbdir.append("backup.log"))
checkdest_if_necessary(rpout)
prevtime = backup_get_mirrortime()
if prevtime >= Time.curtime: Log.FatalError(
"""Time of Last backup is not in the past. This is probably caused
by running two backups in less than a second. Wait a second a try again.""")
ErrorLog.open(Time.curtimestr, compress = Globals.compression)
inc_base = Globals.rbdir.append_path("increments")
if not inc_base.lstat(): inc_base.mkdir()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment