Fix a couple bugs

- Remove extra closed parenthesis
- Forgot to import fcntl
- Add option to config schema
This commit is contained in:
Andrew Burkett 2019-11-26 21:31:04 -08:00
parent 1d1df99ee8
commit 8d24b0a586
2 changed files with 6 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import json
import logging
import os
import sys
import fcntl
from subprocess import CalledProcessError
import colorama
@ -575,7 +576,7 @@ def main(): # pragma: no cover
fcntl.flock(f.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)
except IOError:
logger.critical("Failed to acquire lock for {}".format(config_filename))
sys.exit(0))
sys.exit(0)
locks.append(f)
summary_logs = parse_logs + list(collect_configuration_run_summary_logs(configs, arguments))

View File

@ -32,6 +32,10 @@ map:
type: bool
desc: Stay in same file system (do not cross mount points). Defaults to false.
example: true
lock_config:
type: bool
desc: Lock config when running borgmatic to prevent multiple instances from running simultaneously
example: true
numeric_owner:
type: bool
desc: Only store/extract numeric user and group identifiers. Defaults to false.