fix: make paperless and vaultwarden temporary backup dirs persistent to avoid running out of tmpfs space on backups

This commit is contained in:
oddlama 2024-01-20 20:14:49 +01:00
parent 38a89b05a3
commit d77fcaa826
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
4 changed files with 21 additions and 3 deletions

View file

@ -112,8 +112,18 @@ in {
};
inherit (cfg) environment;
requiredBy = ["restic-backups-storage-box-dusk.service"];
before = ["restic-backups-storage-box-dusk.service"];
};
environment.persistence."/state".directories = [
{
directory = paperlessBackupDir;
user = "paperless";
group = "paperless";
mode = "0700";
}
];
backups.storageBoxes.dusk = {
subuser = "paperless";
paths = [paperlessBackupDir];