Configuration support for additional attic prune flags: keep_within, keep_hourly, keep_yearly, and prefix.

This commit is contained in:
Dan Helfman 2014-12-06 18:35:20 -08:00
commit 056ed7184b

View file

@ -38,8 +38,8 @@ def main():
args = parse_arguments()
location_config, retention_config = parse_configuration(args.config_filename)
create_archive(args.excludes_filename, args.verbose, *location_config)
prune_archives(location_config.repository, args.verbose, *retention_config)
create_archive(args.excludes_filename, args.verbose, **location_config)
prune_archives(args.verbose, location_config['repository'], retention_config)
except (ValueError, IOError, CalledProcessError) as error:
print(error, file=sys.stderr)
sys.exit(1)