alyssum/restic: init
This commit is contained in:
parent
c0004409d7
commit
49bc50ae39
6 changed files with 55 additions and 1 deletions
30
hosts/alyssum/restic.nix
Normal file
30
hosts/alyssum/restic.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ config, ... }: {
|
||||
age.secrets.restic_env.file = ../../secrets/restic_env.age;
|
||||
age.secrets.restic_pass.file = ../../secrets/restic_pass.age;
|
||||
age.secrets.restic_url.file = ../../secrets/restic_url.age;
|
||||
|
||||
services.restic.backups."flower" = {
|
||||
initialize = true;
|
||||
createWrapper = true;
|
||||
progressFps = "0.016666";
|
||||
|
||||
environmentFile = config.age.secrets.restic_env.path;
|
||||
passwordFile = config.age.secrets.restic_pass.path;
|
||||
repositoryFile = config.age.secrets.restic_url.path;
|
||||
|
||||
paths = ["/flower"];
|
||||
timerConfig = {
|
||||
# every 30mns
|
||||
OnCalendar = "*-*-* *:00,30:00";
|
||||
Persistent = true;
|
||||
};
|
||||
bleh = [
|
||||
"--keep-last 24"
|
||||
"--keep-hourly 24"
|
||||
"--keep-daily 7"
|
||||
"--keep-weekly 5"
|
||||
"--keep-monthly 12"
|
||||
"--keep-yearly 75"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue