Compare commits
No commits in common. "8629db70e6ff31b73dc78a943aba8df5f6dd21e3" and "c47d72a37602ee293b39a0f6b259114a1c2f90e2" have entirely different histories.
8629db70e6
...
c47d72a376
|
@ -54,7 +54,6 @@ 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 = {
|
||||||
|
|
|
@ -75,12 +75,8 @@ 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 ];
|
||||||
exclude = [
|
# borg can fail if *.part files disappear during backup
|
||||||
# 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