Compare commits
2 commits
c47d72a376
...
8629db70e6
Author | SHA1 | Date | |
---|---|---|---|
Antoine Martin | 8629db70e6 | ||
Antoine Martin | 4115c3d8d7 |
|
@ -54,6 +54,7 @@ in {
|
|||
environment.BORG_RSH = "ssh -i /root/borgbackup/ssh_key";
|
||||
extraCreateArgs = "--stats --list";
|
||||
extraPruneArgs = "--stats --list";
|
||||
doInit = true;
|
||||
compression = "auto,zstd";
|
||||
startAt = "daily";
|
||||
prune.keep = {
|
||||
|
|
|
@ -75,8 +75,12 @@ in
|
|||
nextcloudHome = config.services.nextcloud.home;
|
||||
in lib.mkIf cfg.enable {
|
||||
paths = [ nextcloudHome ];
|
||||
exclude = [
|
||||
# borg can fail if *.part files disappear during backup
|
||||
exclude = [ "${nextcloudHome}/data/*/uploads" ];
|
||||
"re:^${nextcloudHome}/data/[^/]+/uploads"
|
||||
# image previews can take up a lot of space
|
||||
"re:^${nextcloudHome}/data/appdata_[^/]+/preview"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue