22 |
from __future__ import generators |
from __future__ import generators |
23 |
import tempfile, os, cStringIO |
import tempfile, os, cStringIO |
24 |
import Globals, Time, Rdiff, Hardlink, rorpiter, selection, rpath, \ |
import Globals, Time, Rdiff, Hardlink, rorpiter, selection, rpath, \ |
25 |
log, static, robust, metadata, statistics, TempFile, eas_acls, hash |
log, static, robust, metadata, statistics, TempFile, hash |
26 |
|
|
27 |
|
|
28 |
class RestoreError(Exception): pass |
class RestoreError(Exception): pass |
177 |
""" |
""" |
178 |
if rest_time is None: rest_time = cls._rest_time |
if rest_time is None: rest_time = cls._rest_time |
179 |
|
|
180 |
rorp_iter = eas_acls.GetCombinedMetadataIter( |
if not metadata.ManagerObj: metadata.SetManager() |
181 |
Globals.rbdir, rest_time, restrict_index = cls.mirror_base.index, |
rorp_iter = metadata.ManagerObj.GetAtTime(rest_time, |
182 |
acls = Globals.acls_active, eas = Globals.eas_active) |
cls.mirror_base.index) |
183 |
if not rorp_iter: |
if not rorp_iter: |
184 |
if require_metadata: |
if require_metadata: |
185 |
log.Log.FatalError("Mirror metadata not found") |
log.Log.FatalError("Mirror metadata not found") |