Browse Source

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

Robin Schneider 9 years ago
parent
commit
1f1ff61375
1 changed files with 1 additions and 1 deletions
  1. 1 1
      borg/archiver.py

+ 1 - 1
borg/archiver.py

@@ -466,7 +466,7 @@ class Archiver:
         cache = Cache(repository, key, manifest, do_files=args.cache_files, lock_wait=self.lock_wait)
         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
         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:
         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')
                              '"keep-monthly" or "keep-yearly" settings must be specified')
             return self.exit_code
             return self.exit_code
         if args.prefix:
         if args.prefix: