ADD ssh config for Hetzner storage boxes
CHANGE backup config. Comment rest server, add hetzner storage box for repository
This commit is contained in:
parent
e36966c7a7
commit
249c42ff8d
|
@ -1,16 +1,20 @@
|
|||
{config, pkgs, ...}:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
restic
|
||||
];
|
||||
services.restic.backups = {
|
||||
localbackup = {
|
||||
initialize = true;
|
||||
passwordFile = "/run/restic_pass";
|
||||
paths = [ "/var/lib/nextcloud/data/" "/var/backup/postgresql" ];
|
||||
repository = "rest:https://back.atlanticaweb.fr/Nextcloud";
|
||||
timerConfig = {
|
||||
OnCalendar = "02:05";
|
||||
RandomizedDelaySec = "5h";
|
||||
};
|
||||
remotebackup = {
|
||||
initialize = true;
|
||||
passwordFile = "/run/restic_pass";
|
||||
paths = [ "/var/lib/nextcloud/data/" "/var/backup/postgresql" ];
|
||||
#repository = "rest:https://back.atlanticaweb.fr/Nextcloud";
|
||||
repository = "sftp:u329746@u329746.your-storagebox.de:/home/Nextcloud";
|
||||
timerConfig = {
|
||||
OnCalendar = "02:05";
|
||||
RandomizedDelaySec = "5h";
|
||||
};
|
||||
};
|
||||
};
|
||||
services.postgresqlBackup = {
|
||||
enable = true;
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
../modules/transmission.nix
|
||||
../modules/prometheus-node.nix
|
||||
../docker/appsmith.nix
|
||||
../docker/baserow.nix
|
||||
./agenix.nix
|
||||
# <agenix/modules/age.nix>
|
||||
];
|
||||
|
@ -23,6 +24,7 @@
|
|||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKUA1RW6JwZasspAp8qmFRFnlV5WXjhLfStAAkM+KYLv lucazeau.alexandre@gmail.com"
|
||||
];
|
||||
|
||||
programs.ssh.extraConfig = "Host u329746.your-storagebox.de\n Hostname u329746.your-storagebox.de\n Port 23\n user u329746\n IdentityFile /home/alexandre/.ssh/id_ed25519-perso";
|
||||
networking.firewall.allowedTCPPorts = [ 80 443 22 9002 4533 5050];
|
||||
services.qemuGuest.enable = true;
|
||||
|
||||
|
|
Loading…
Reference in New Issue