ninurta: backup to backup2
This commit is contained in:
parent
61bed7f861
commit
af8ce81c90
3 changed files with 9 additions and 3 deletions
|
@ -23,6 +23,7 @@ with lib; let
|
||||||
"/var/lib/machines"
|
"/var/lib/machines"
|
||||||
"/var/log"
|
"/var/log"
|
||||||
"/var/tmp"
|
"/var/tmp"
|
||||||
|
"/swapfile"
|
||||||
];
|
];
|
||||||
cfg = config.dadada.backupClient;
|
cfg = config.dadada.backupClient;
|
||||||
in
|
in
|
||||||
|
|
|
@ -15,6 +15,12 @@ in
|
||||||
sshIdentityFile = config.age.secrets."${config.networking.hostName}-backup-ssh-key".path;
|
sshIdentityFile = config.age.secrets."${config.networking.hostName}-backup-ssh-key".path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dadada.backupClient.backup2 = {
|
||||||
|
enable = lib.mkDefault false;
|
||||||
|
passphrasePath = config.age.secrets."${config.networking.hostName}-backup-passphrase".path;
|
||||||
|
sshIdentityFile = config.age.secrets."${config.networking.hostName}-backup-ssh-key".path;
|
||||||
|
};
|
||||||
|
|
||||||
age.secrets."${config.networking.hostName}-backup-passphrase".file = "${secretsPath}/${config.networking.hostName}-backup-passphrase.age";
|
age.secrets."${config.networking.hostName}-backup-passphrase".file = "${secretsPath}/${config.networking.hostName}-backup-passphrase.age";
|
||||||
age.secrets."${config.networking.hostName}-backup-ssh-key".file = "${secretsPath}/${config.networking.hostName}-backup-ssh-key.age";
|
age.secrets."${config.networking.hostName}-backup-ssh-key".file = "${secretsPath}/${config.networking.hostName}-backup-ssh-key.age";
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,10 +20,9 @@ in
|
||||||
|
|
||||||
dadada.backupClient.bs.enable = false;
|
dadada.backupClient.bs.enable = false;
|
||||||
dadada.backupClient.backup1.enable = false;
|
dadada.backupClient.backup1.enable = false;
|
||||||
|
|
||||||
dadada.backupClient.backup2 = {
|
dadada.backupClient.backup2 = {
|
||||||
enable = false;
|
enable = true;
|
||||||
passphrasePath = config.age.secrets."${config.networking.hostName}-backup-passphrase".path;
|
|
||||||
sshIdentityFile = config.age.secrets."${config.networking.hostName}-backup-ssh-key".path;
|
|
||||||
repo = "u355513-sub2@u355513-sub2.your-storagebox.de:/home/backup";
|
repo = "u355513-sub2@u355513-sub2.your-storagebox.de:/home/backup";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue