Ejemplo n.º 1
0
def status(**options):
    """Status of the backup collection."""
    check_config_file(options.get("config"), verbose=options.get("verbose"))

    dup = DuplicityS3(**options)
    dup.do_collection_status()
Ejemplo n.º 2
0
def remove(**options):
    """Remove older backups."""
    check_config_file(options.get("config"), verbose=options.get("verbose"))

    dup = DuplicityS3(**options)
    dup.do_remove_older()
Ejemplo n.º 3
0
    def test_duplicity(self):
        """Search the duplicity command on the platform."""
        from duplicity_backup_s3.duplicity_s3 import DuplicityS3

        self.assertTrue(DuplicityS3.duplicity_cmd())
Ejemplo n.º 4
0
def cleanup(**options):
    """Cleanup the backup location."""
    check_config_file(options.get("config"), verbose=options.get("verbose"))

    dup = DuplicityS3(**options)
    dup.do_cleanup()
Ejemplo n.º 5
0
def list(**options):
    """List of the current files in the backup."""
    check_config_file(options.get("config"), verbose=options.get("verbose"))

    dup = DuplicityS3(**options)
    dup.do_list_current_files()
Ejemplo n.º 6
0
def verify(**options):
    """Verify backup."""
    check_config_file(options.get("config"), verbose=options.get("verbose"))

    dup = DuplicityS3(**options)
    dup.do_verify()
Ejemplo n.º 7
0
def incr(**options):
    """Perform an Incremental backup."""
    check_config_file(options.get("config"), verbose=options.get("verbose"))

    dupe = DuplicityS3(**options)
    return dupe.do_incremental()
Ejemplo n.º 8
0
def restore(**options):
    """Perform a Restore of a backup."""
    check_config_file(options.get("config"), verbose=options.get("verbose"))

    dupe = DuplicityS3(**options)
    return dupe.do_restore()