nextcloud: don't backup image previews
This commit is contained in:
parent
c47d72a376
commit
4115c3d8d7
|
@ -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 ];
|
||||||
|
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