forked from borgmatic-collective/borgmatic
added --files-changed flag
This commit is contained in:
parent
e3779c90ad
commit
e23ce80775
3 changed files with 5 additions and 3 deletions
|
|
@ -198,6 +198,7 @@ def make_base_create_command( # noqa: PLR0912
|
|||
umask = config.get('umask', None)
|
||||
lock_wait = config.get('lock_wait', None)
|
||||
list_filter_flags = flags.make_list_filter_flags(local_borg_version, dry_run)
|
||||
files_changed = config.get('files_changed')
|
||||
files_cache = config.get('files_cache')
|
||||
archive_name_format = (
|
||||
config.get('archive_name_format', flags.get_default_archive_name_format(local_borg_version))
|
||||
|
|
@ -248,6 +249,7 @@ def make_base_create_command( # noqa: PLR0912
|
|||
+ (('--nobirthtime',) if config.get('birthtime') is False else ())
|
||||
+ (('--read-special',) if config.get('read_special') or stream_processes else ())
|
||||
+ noflags_flags
|
||||
+ (('--files-changed', files_changed) if files_changed else ())
|
||||
+ (('--files-cache', files_cache) if files_cache else ())
|
||||
+ (('--remote-path', remote_path) if remote_path else ())
|
||||
+ (('--umask', str(umask)) if umask else ())
|
||||
|
|
|
|||
|
|
@ -104,9 +104,8 @@ properties:
|
|||
Threshold for considering a file as changed. See
|
||||
https://borgbackup.readthedocs.io/en/stable/usage/create.html for
|
||||
details. Defaults to "mtime" (i.e., a file is considered
|
||||
changed if either its mtime has changed since the last
|
||||
backup).
|
||||
example: size
|
||||
changed if its mtime has changed since the last backup.)
|
||||
example: ctime
|
||||
working_directory:
|
||||
type: string
|
||||
description: |
|
||||
|
|
|
|||
|
|
@ -483,6 +483,7 @@ def test_make_base_create_command_with_store_config_false_omits_config_files():
|
|||
('flags', False, True, ('--noflags',)),
|
||||
('flags', False, False, ('--nobsdflags',)),
|
||||
('files_cache', 'ctime,size', True, ('--files-cache', 'ctime,size')),
|
||||
('files_changed', 'ctime', True, ('--files-changed', 'ctime')),
|
||||
('umask', 740, True, ('--umask', '740')),
|
||||
('lock_wait', 5, True, ('--lock-wait', '5')),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue