feat: custom include patterns (#104)

* feat: add custom include patterns

* feat: add exclude-if-present option
This commit is contained in:
Nico
2025-12-04 18:44:34 +01:00
committed by Nicolas Meienberger
parent d542318e2c
commit f232fc07c1
2 changed files with 13 additions and 0 deletions

View File

@@ -141,6 +141,13 @@
"when": 1764839917446,
"tag": "0019_secret_nomad",
"breakpoints": true
},
{
"idx": 20,
"version": "6",
"when": 1764847918249,
"tag": "0020_even_dexter_bennett",
"breakpoints": true
}
]
}

View File

@@ -281,6 +281,12 @@ const backup = async (
}
}
if (options?.excludeIfPresent && options.excludeIfPresent.length > 0) {
for (const filename of options.excludeIfPresent) {
args.push("--exclude-if-present", filename);
}
}
addCommonArgs(args, env);
const logData = throttle((data: string) => {