From 4fb2f2151ea2be03eead8fc44589e2ab0bdd7fad Mon Sep 17 00:00:00 2001 From: elandorr <56206745+elandorr@users.noreply.github.com> Date: Sun, 14 May 2023 19:23:15 +0000 Subject: [PATCH 1/3] include/exclude options --- src/borg/archiver/_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/archiver/_common.py b/src/borg/archiver/_common.py index 38226e828..3bb9e496b 100644 --- a/src/borg/archiver/_common.py +++ b/src/borg/archiver/_common.py @@ -351,7 +351,7 @@ def define_exclude_and_patterns(add_option, *, tag_files=False, strip_components def define_exclusion_group(subparser, **kwargs): - exclude_group = subparser.add_argument_group("Exclusion options") + exclude_group = subparser.add_argument_group("Include/Exclude options") define_exclude_and_patterns(exclude_group.add_argument, **kwargs) return exclude_group From c83507eb0cd4bfff61124a7ce3df2153ab8a908c Mon Sep 17 00:00:00 2001 From: elandorr <56206745+elandorr@users.noreply.github.com> Date: Sun, 14 May 2023 19:24:55 +0000 Subject: [PATCH 2/3] mention paths-from-stdin's exclusiveness --- src/borg/archiver/create_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/borg/archiver/create_cmd.py b/src/borg/archiver/create_cmd.py index 19f88d994..a688880f0 100644 --- a/src/borg/archiver/create_cmd.py +++ b/src/borg/archiver/create_cmd.py @@ -802,7 +802,7 @@ class CreateMixIn: subparser.add_argument( "--paths-from-stdin", action="store_true", - help="read DELIM-separated list of paths to back up from stdin. Will not " "recurse into directories.", + help="read DELIM-separated list of paths to back up from stdin. Exclusive option - no recursion, no excludes, ``-x`` does not apply.", ) subparser.add_argument( "--paths-from-command", From bfe6e0da5df56dd355b78f4b8f96c1be945c57f0 Mon Sep 17 00:00:00 2001 From: elandorr <56206745+elandorr@users.noreply.github.com> Date: Mon, 15 May 2023 11:49:22 +0000 Subject: [PATCH 3/3] Update create_cmd.py --- src/borg/archiver/create_cmd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/borg/archiver/create_cmd.py b/src/borg/archiver/create_cmd.py index a688880f0..0d1d2fa65 100644 --- a/src/borg/archiver/create_cmd.py +++ b/src/borg/archiver/create_cmd.py @@ -802,7 +802,8 @@ class CreateMixIn: subparser.add_argument( "--paths-from-stdin", action="store_true", - help="read DELIM-separated list of paths to back up from stdin. Exclusive option - no recursion, no excludes, ``-x`` does not apply.", + help="read DELIM-separated list of paths to back up from stdin. All control is external: it will back" + " up all files given - no more, no less.", ) subparser.add_argument( "--paths-from-command",