mysql: add backup
This commit is contained in:
parent
d7915d9045
commit
2def7bcac0
1 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
];
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue