def recon(name, file, paths): target = paths[0] logger.info("Reconstructing file %s from snapshot %s to %s" % (file, name, target)) snapshot.set(name) file = snapshot.File.from_path(file) file.reconstruct(target)
def add(name, paths): snapshot.set(name) for path in each([p for p in paths]): logger.info("Adding file %s to snapshot %s" % (path, name)) Parse.parser(path)
def delete(paths): for path in paths: logger.info("Clearing snapshot %s of all files" % path) snapshot.set(path) snapshot.delete()
def create(paths): for path in paths: logger.info("Initializing snapshot %s" % path) snapshot.set(path) snapshot.create()