feat: create restic backup framework
This commit is contained in:
parent
20da7277ee
commit
43f471a017
1 changed files with 25 additions and 0 deletions
25
home/essentials/restic.nix
Normal file
25
home/essentials/restic.nix
Normal 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}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue