Fix a couple bugs
- Remove extra closed parenthesis - Forgot to import fcntl - Add option to config schema
This commit is contained in:
parent
1d1df99ee8
commit
8d24b0a586
|
@ -3,6 +3,7 @@ import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import fcntl
|
||||||
from subprocess import CalledProcessError
|
from subprocess import CalledProcessError
|
||||||
|
|
||||||
import colorama
|
import colorama
|
||||||
|
@ -575,7 +576,7 @@ def main(): # pragma: no cover
|
||||||
fcntl.flock(f.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)
|
fcntl.flock(f.fileno(), fcntl.LOCK_EX | fcntl.LOCK_NB)
|
||||||
except IOError:
|
except IOError:
|
||||||
logger.critical("Failed to acquire lock for {}".format(config_filename))
|
logger.critical("Failed to acquire lock for {}".format(config_filename))
|
||||||
sys.exit(0))
|
sys.exit(0)
|
||||||
locks.append(f)
|
locks.append(f)
|
||||||
|
|
||||||
summary_logs = parse_logs + list(collect_configuration_run_summary_logs(configs, arguments))
|
summary_logs = parse_logs + list(collect_configuration_run_summary_logs(configs, arguments))
|
||||||
|
|
|
@ -32,6 +32,10 @@ map:
|
||||||
type: bool
|
type: bool
|
||||||
desc: Stay in same file system (do not cross mount points). Defaults to false.
|
desc: Stay in same file system (do not cross mount points). Defaults to false.
|
||||||
example: true
|
example: true
|
||||||
|
lock_config:
|
||||||
|
type: bool
|
||||||
|
desc: Lock config when running borgmatic to prevent multiple instances from running simultaneously
|
||||||
|
example: true
|
||||||
numeric_owner:
|
numeric_owner:
|
||||||
type: bool
|
type: bool
|
||||||
desc: Only store/extract numeric user and group identifiers. Defaults to false.
|
desc: Only store/extract numeric user and group identifiers. Defaults to false.
|
||||||
|
|
Loading…
Reference in New Issue