From 4115c3d8d7266c432d8ec4c5d6e2d349011380a2 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 24 Mar 2021 19:37:00 +0100 Subject: [PATCH] nextcloud: don't backup image previews --- services/nextcloud.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/services/nextcloud.nix b/services/nextcloud.nix index 3d22a69..bf85aef 100644 --- a/services/nextcloud.nix +++ b/services/nextcloud.nix @@ -75,8 +75,12 @@ in nextcloudHome = config.services.nextcloud.home; in lib.mkIf cfg.enable { paths = [ nextcloudHome ]; - # borg can fail if *.part files disappear during backup - exclude = [ "${nextcloudHome}/data/*/uploads" ]; + exclude = [ + # borg can fail if *.part files disappear during backup + "re:^${nextcloudHome}/data/[^/]+/uploads" + # image previews can take up a lot of space + "re:^${nextcloudHome}/data/appdata_[^/]+/preview" + ]; }; }; }