feat: create restic backup framework

This commit is contained in:
etwas 2025-10-14 20:54:30 +02:00
parent 20da7277ee
commit 43f471a017
Signed by: etwas
SSH key fingerprint: SHA256:bHhIeAdn/2k9jmOs6+u6ox98VYmoHUN3HfnpV2w8Ws0

View file

@ -0,0 +1,25 @@
{ config, ... }:
{
services.restic = {
enable = true;
backups = {
localbackup = {
exclude = [
"/home/*/.cache/*"
"*venv*"
];
initialize = true;
passwordFile = config.age.secrets.restic-password.path;
paths = [
"/home"
];
repository = "s3:https://s3.filmsli.de/restic-framework";
environmentFile = ''
AWS_ACCESS_KEY_ID=XFRV1PZVN3W4OJMTTQRS
AWS_SECRET_ACCESS_KEY=${builtins.readFile config.age.secrets.restic-s3-key.path}
'';
};
};
};
}