nextcloud: ignore in-progress uploads in backups
This commit is contained in:
parent
40d4f07df3
commit
844b940493
|
@ -71,8 +71,12 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
my.services.borg-backup = lib.mkIf cfg.enable {
|
my.services.borg-backup = let
|
||||||
paths = [ config.services.nextcloud.home ];
|
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" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue