Compare commits

..

2 commits

2 changed files with 7 additions and 2 deletions

View file

@ -54,6 +54,7 @@ in {
environment.BORG_RSH = "ssh -i /root/borgbackup/ssh_key"; environment.BORG_RSH = "ssh -i /root/borgbackup/ssh_key";
extraCreateArgs = "--stats --list"; extraCreateArgs = "--stats --list";
extraPruneArgs = "--stats --list"; extraPruneArgs = "--stats --list";
doInit = true;
compression = "auto,zstd"; compression = "auto,zstd";
startAt = "daily"; startAt = "daily";
prune.keep = { prune.keep = {

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"
];
}; };
}; };
} }