mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #111422 from helsinki-systems/mysqlBackup
nixos/mysqlBackup: add types
This commit is contained in:
commit
457ff6d28e
1 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
|
type = types.str;
|
||||||
default = defaultUser;
|
default = defaultUser;
|
||||||
description = ''
|
description = ''
|
||||||
User to be used to perform backup.
|
User to be used to perform backup.
|
||||||
|
@ -56,12 +57,14 @@ in
|
||||||
|
|
||||||
databases = mkOption {
|
databases = mkOption {
|
||||||
default = [];
|
default = [];
|
||||||
|
type = types.listOf types.str;
|
||||||
description = ''
|
description = ''
|
||||||
List of database names to dump.
|
List of database names to dump.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
location = mkOption {
|
location = mkOption {
|
||||||
|
type = types.path;
|
||||||
default = "/var/backup/mysql";
|
default = "/var/backup/mysql";
|
||||||
description = ''
|
description = ''
|
||||||
Location to put the gzipped MySQL database dumps.
|
Location to put the gzipped MySQL database dumps.
|
||||||
|
@ -70,6 +73,7 @@ in
|
||||||
|
|
||||||
singleTransaction = mkOption {
|
singleTransaction = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
|
type = types.bool;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to create database dump in a single transaction
|
Whether to create database dump in a single transaction
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue