mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-29 03:06:12 +00:00
ArchiveChecker.check: reorder args, make most kwargs-only
This commit is contained in:
parent
60ebd1d2b0
commit
61904dd683
2 changed files with 9 additions and 8 deletions
|
@ -1703,16 +1703,17 @@ def __init__(self):
|
||||||
def check(
|
def check(
|
||||||
self,
|
self,
|
||||||
repository,
|
repository,
|
||||||
|
*,
|
||||||
|
verify_data=False,
|
||||||
repair=False,
|
repair=False,
|
||||||
|
match=None,
|
||||||
|
sort_by="",
|
||||||
first=0,
|
first=0,
|
||||||
last=0,
|
last=0,
|
||||||
sort_by="",
|
|
||||||
match=None,
|
|
||||||
older=None,
|
older=None,
|
||||||
newer=None,
|
newer=None,
|
||||||
oldest=None,
|
oldest=None,
|
||||||
newest=None,
|
newest=None,
|
||||||
verify_data=False,
|
|
||||||
):
|
):
|
||||||
"""Perform a set of checks on 'repository'
|
"""Perform a set of checks on 'repository'
|
||||||
|
|
||||||
|
|
|
@ -51,16 +51,16 @@ def do_check(self, args, repository):
|
||||||
return EXIT_WARNING
|
return EXIT_WARNING
|
||||||
if not args.repo_only and not ArchiveChecker().check(
|
if not args.repo_only and not ArchiveChecker().check(
|
||||||
repository,
|
repository,
|
||||||
|
verify_data=args.verify_data,
|
||||||
repair=args.repair,
|
repair=args.repair,
|
||||||
|
match=args.match_archives,
|
||||||
|
sort_by=args.sort_by or "ts",
|
||||||
first=args.first,
|
first=args.first,
|
||||||
last=args.last,
|
last=args.last,
|
||||||
sort_by=args.sort_by or "ts",
|
|
||||||
match=args.match_archives,
|
|
||||||
verify_data=args.verify_data,
|
|
||||||
oldest=args.oldest,
|
|
||||||
newest=args.newest,
|
|
||||||
older=args.older,
|
older=args.older,
|
||||||
newer=args.newer,
|
newer=args.newer,
|
||||||
|
oldest=args.oldest,
|
||||||
|
newest=args.newest,
|
||||||
):
|
):
|
||||||
return EXIT_WARNING
|
return EXIT_WARNING
|
||||||
return EXIT_SUCCESS
|
return EXIT_SUCCESS
|
||||||
|
|
Loading…
Reference in a new issue