l mors.r: add restic backups
This commit is contained in:
parent
ddb06a5542
commit
b067850740
|
@ -186,4 +186,34 @@ with import <stockholm/lib>;
|
||||||
programs.adb.enable = true;
|
programs.adb.enable = true;
|
||||||
users.users.mainUser.extraGroups = [ "adbusers" "docker" ];
|
users.users.mainUser.extraGroups = [ "adbusers" "docker" ];
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
|
lass.restic = genAttrs [
|
||||||
|
"daedalus"
|
||||||
|
"icarus"
|
||||||
|
"littleT"
|
||||||
|
"prism"
|
||||||
|
"shodan"
|
||||||
|
"skynet"
|
||||||
|
] (dest: {
|
||||||
|
dirs = [
|
||||||
|
"/home/lass/src"
|
||||||
|
"/home/lass/work"
|
||||||
|
"/home/lass/.gnupg"
|
||||||
|
"/home/lass/Maildir"
|
||||||
|
"/home/lass/stockholm"
|
||||||
|
"/home/lass/.password-store"
|
||||||
|
"/home/bitcoin"
|
||||||
|
"/home/bch"
|
||||||
|
];
|
||||||
|
passwordFile = (toString <secrets>) + "/restic/${dest}";
|
||||||
|
repo = "sftp:backup@${dest}.r:/backups/mors";
|
||||||
|
#sshPrivateKey = config.krebs.build.host.ssh.privkey.path;
|
||||||
|
extraArguments = [
|
||||||
|
"sftp.command='ssh backup@${dest}.r -i ${config.krebs.build.host.ssh.privkey.path} -s sftp'"
|
||||||
|
];
|
||||||
|
timerConfig = {
|
||||||
|
OnCalendar = "00:05";
|
||||||
|
RandomizedDelaySec = "5h";
|
||||||
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue