nextcloud: don't backup image previews

This commit is contained in:
Antoine Martin 2021-03-24 19:37:00 +01:00
parent c47d72a376
commit 4115c3d8d7

View file

@ -75,8 +75,12 @@ in
nextcloudHome = config.services.nextcloud.home; nextcloudHome = config.services.nextcloud.home;
in lib.mkIf cfg.enable { in lib.mkIf cfg.enable {
paths = [ nextcloudHome ]; paths = [ nextcloudHome ];
# borg can fail if *.part files disappear during backup exclude = [
exclude = [ "${nextcloudHome}/data/*/uploads" ]; # 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"
];
}; };
}; };
} }