From f232fc07c122787c3944ae24ad881345dbd72852 Mon Sep 17 00:00:00 2001 From: Nico <47644445+nicotsx@users.noreply.github.com> Date: Thu, 4 Dec 2025 18:44:34 +0100 Subject: [PATCH] feat: custom include patterns (#104) * feat: add custom include patterns * feat: add exclude-if-present option --- app/drizzle/meta/_journal.json | 7 +++++++ app/server/utils/restic.ts | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/app/drizzle/meta/_journal.json b/app/drizzle/meta/_journal.json index 36145bb..b3edcb3 100644 --- a/app/drizzle/meta/_journal.json +++ b/app/drizzle/meta/_journal.json @@ -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 } ] } \ No newline at end of file diff --git a/app/server/utils/restic.ts b/app/server/utils/restic.ts index c1559dc..ab6743f 100644 --- a/app/server/utils/restic.ts +++ b/app/server/utils/restic.ts @@ -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) => {