nextcloud: ignore in-progress uploads in backups

This commit is contained in:
Antoine Martin 2021-03-24 00:31:45 +01:00
parent 40d4f07df3
commit 844b940493

View file

@ -71,8 +71,12 @@ in
};
};
my.services.borg-backup = lib.mkIf cfg.enable {
paths = [ config.services.nextcloud.home ];
my.services.borg-backup = let
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" ];
};
};
}