borg prune only knows "--keep-within" and not "--within".

This commit is contained in:
Robin Schneider 2016-01-17 21:15:26 +01:00
parent 83c5321f53
commit 1f1ff61375
No known key found for this signature in database
GPG Key ID: 489A4D5EC353C98A
1 changed files with 1 additions and 1 deletions

View File

@ -466,7 +466,7 @@ class Archiver:
cache = Cache(repository, key, manifest, do_files=args.cache_files, lock_wait=self.lock_wait)
archives = manifest.list_archive_infos(sort_by='ts', reverse=True) # just a ArchiveInfo list
if args.hourly + args.daily + args.weekly + args.monthly + args.yearly == 0 and args.within is None:
self.print_error('At least one of the "within", "keep-hourly", "keep-daily", "keep-weekly", '
self.print_error('At least one of the "keep-within", "keep-hourly", "keep-daily", "keep-weekly", '
'"keep-monthly" or "keep-yearly" settings must be specified')
return self.exit_code
if args.prefix: