From e198002d60ac14a6486e3785f3d7a958bf9150a0 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Fri, 2 Feb 2024 21:41:44 +0100 Subject: [PATCH] mysql: enable backups --- modules/mysql.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/mysql.nix b/modules/mysql.nix index 0571680..8d6e673 100644 --- a/modules/mysql.nix +++ b/modules/mysql.nix @@ -5,4 +5,16 @@ package = pkgs.mariadb; settings.mysqld.bind_address = "127.0.0.1"; }; + services.mysqlBackup = { + enable = true; + user = "mysql"; + location = "/var/lib/backup/mysql"; + databases = [ + "decisions" + "fsrewsp" + "nightline" + "wiki_ese" + "wiki_vernetzung" + ]; + }; }