From 900ea80a42278317114db04d5abccc3b051a74b2 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 4 Oct 2018 21:45:31 -0700 Subject: [PATCH] Hack to uncomment all options in config file used for finding unsupported Borg options. --- scripts/find-unsupported-borg-options | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/find-unsupported-borg-options b/scripts/find-unsupported-borg-options index 176ec5fa..dbe26a44 100755 --- a/scripts/find-unsupported-borg-options +++ b/scripts/find-unsupported-borg-options @@ -6,8 +6,10 @@ set -o nounset # appear to support yet. This script isn't terribly robust. It's intended as a basic tool to ferret # out unsupported Borg options so that they can be considered for addition to borgmatic. -# Generate a sample borgmatic configuration with all options set. +# Generate a sample borgmatic configuration with all options set, and uncomment all options. generate-borgmatic-config --destination temp.yaml +cat temp.yaml | sed -e 's/# \S.*$//' | sed -e 's/#//' > temp.yaml.uncommented +mv temp.yaml.uncommented temp.yaml # For each sub-command (prune, create, and check), collect the Borg command-line flags that result # from running borgmatic with the generated configuration. Then, collect the full set of available @@ -33,6 +35,7 @@ for sub_command in prune create check list info; do | grep -v '^--error$' \ | grep -v '^--help$' \ | grep -v '^--info$' \ + | grep -v '^--json$' \ | grep -v '^--list$' \ | grep -v '^--nobsdflags$' \ | grep -v '^--pattern$' \