mysql: add backup

This commit is contained in:
Ingolf Wagner 2020-09-20 22:54:59 +02:00
parent d7915d9045
commit 2def7bcac0
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -1,4 +1,4 @@
{ pkgs, lib, ... }: {
{ pkgs, lib, config, ... }: {
services.mysql = {
enable = true;
@ -9,4 +9,16 @@
'';
};
services.mysqlBackup = {
enable = true;
databases = [
"property"
];
user = "root";
};
backup.dirs = [
config.services.mysqlBackup.location
];
}