From 60fe5a91dee6c6fe096d6bdf638b327953ec0daa Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 6 Sep 2023 18:39:17 +0800 Subject: [PATCH] nixbld: backup 193THz.com --- nixbld-etc-nixos/backup-module.nix | 2 +- nixbld-etc-nixos/configuration.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nixbld-etc-nixos/backup-module.nix b/nixbld-etc-nixos/backup-module.nix index 8f14103d..ec5d0837 100644 --- a/nixbld-etc-nixos/backup-module.nix +++ b/nixbld-etc-nixos/backup-module.nix @@ -27,7 +27,7 @@ let ${pkgs.sudo}/bin/sudo -u mattermost ${config.services.postgresql.package}/bin/pg_dump mattermost > mattermost.sql ${pkgs.sudo}/bin/sudo -u rt ${config.services.postgresql.package}/bin/pg_dump rt5 > rt.sql - ${pkgs.gnutar}/bin/tar cf - ${lib.concatMapStringsSep " " (p: "--exclude \"${p}\"") excludePaths} /etc/nixos /var/vmail /var/lib/hedgedoc /var/lib/gitea /var/lib/afws /var/lib/mattermost/data flarum.sql mattermost.sql rt.sql | \ + ${pkgs.gnutar}/bin/tar cf - ${lib.concatMapStringsSep " " (p: "--exclude \"${p}\"") excludePaths} /etc/nixos /var/vmail /var/lib/hedgedoc /var/lib/gitea /var/lib/afws /var/lib/mattermost/data /var/www/193thz flarum.sql mattermost.sql rt.sql | \ ${pkgs.bzip2}/bin/bzip2 | \ ${pkgs.gnupg}/bin/gpg --symmetric --batch --passphrase-file /etc/nixos/secret/backup-passphrase > /home/backupdl/$FILENAME diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 5ec63745..dae62613 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -995,12 +995,12 @@ in "193thz.com" = { addSSL = true; enableACME = true; - root = "/var/www/perso/sb"; + root = "/var/www/193thz"; }; "www.193thz.com" = { addSSL = true; enableACME = true; - root = "/var/www/perso/sb"; + root = "/var/www/193thz"; }; "nmigen.net" = { addSSL = true;