diff --git a/hosts/next/backup.nix b/hosts/next/backup.nix index bc8b51e..475c780 100644 --- a/hosts/next/backup.nix +++ b/hosts/next/backup.nix @@ -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; diff --git a/hosts/next/configuration.nix b/hosts/next/configuration.nix index d2df394..77a0ca0 100644 --- a/hosts/next/configuration.nix +++ b/hosts/next/configuration.nix @@ -10,6 +10,7 @@ ../modules/transmission.nix ../modules/prometheus-node.nix ../docker/appsmith.nix + ../docker/baserow.nix ./agenix.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;