mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
56eba66f77
* Grants enough privileges to the configured user so that it can run mysqldump. * Adds a nixos test. * Use systemd timers instead of a cronjob (by @fadenb). * Creates a new user for backups by default, instead of using mysql user. * Ensures that backup user has write permissions on backup location. * Write backup to a temporary file before renaming so that a failed backup won't overwrite the previous backup, and so that the backup location will never contain a partial backup. Breaking changes: * Renamed period to calendar to reflect the change in how to configure the backup time. * A failed backup will no longer result in cron sending an e-mail -- users' monitoring systems must be updated. Resolves #24728
12 lines
280 B
SQL
12 lines
280 B
SQL
create table tests
|
|
( Id INTEGER NOT NULL,
|
|
Name VARCHAR(255) NOT NULL,
|
|
primary key(Id)
|
|
);
|
|
|
|
insert into tests values (1, 'a');
|
|
insert into tests values (2, 'b');
|
|
insert into tests values (3, 'c');
|
|
insert into tests values (4, 'd');
|
|
insert into tests values (5, 'hello');
|