Commit 29636fc1 authored by bescoto's avatar bescoto

Fixed bug regressing when second backup was unrecoverable


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@288 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent b14253f1
New in v0.11.3 (2003/04/01)
---------------------------
Brought some old parts of the man page up-to-date (thanks to Olivier
Mueller).
Fixed bug if unrecoverable error on second backup to a directory (also
repored Olivier Mueller).
New in v0.11.2 (2003/03/01)
---------------------------
......
---------[ Short term (next version) ]-------------------------
Fix --print-statistics
---------[ Medium term ]---------------------------------------
Look at Kent Borg's suggestion for restore options and digests.
Add --list-files-changed-between or similar option, to list files that
have changed between two times
---------[ Medium term ]---------------------------------------
Add ACL support
Add --dry-run option (target for v1.1.x)
......
......@@ -294,6 +294,8 @@ option.""" % rpout.path)
except os.error:
Log.FatalError("Unable to create directory %s" % rpout.path)
if not datadir.lstat(): datadir.mkdir()
inc_base = datadir.append_path("increments")
if not inc_base.lstat(): inc_base.mkdir()
if Log.verbosity > 0:
Log.open_logfile(datadir.append("backup.log"))
ErrorLog.open(Time.curtimestr, compress = Globals.compression)
......
......@@ -296,7 +296,9 @@ class RestoreFile:
"""
def __init__(self, mirror_rp, inc_rp, inc_list):
assert mirror_rp.index == inc_rp.index, (mirror_rp, inc_rp)
assert mirror_rp.index == inc_rp.index, \
("mirror and inc indicies don't match: %s %s" %
(mirror_rp.get_indexpath(), inc_rp.get_indexpath()))
self.index = mirror_rp.index
self.mirror_rp = mirror_rp
self.inc_rp, self.inc_list = inc_rp, inc_list
......
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