Example #1
0
File: rab.py Project: regiontog/rab
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)
Example #2
0
File: rab.py Project: regiontog/rab
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)
Example #3
0
File: rab.py Project: regiontog/rab
def delete(paths):
    for path in paths:
        logger.info("Clearing snapshot %s of all files" % path)
        snapshot.set(path)
        snapshot.delete()
Example #4
0
File: rab.py Project: regiontog/rab
def create(paths):
    for path in paths:
        logger.info("Initializing snapshot %s" % path)
        snapshot.set(path)
        snapshot.create()