Skip to content

Commit

Permalink
nixos/release-notes: MySQL backup service breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl authored and globin committed Sep 27, 2017
1 parent 56eba66 commit 34eefdf
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions nixos/doc/manual/release-notes/rl-1709.xml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,46 @@ FLUSH PRIVILEGES;
in them being reloaded.
</para>
</listitem>

<listitem>
<para>
<literal>services.mysqlBackup</literal> now works by default
without any user setup, including for users other than
<literal>mysql</literal>.
</para>

<para>
By default, the <literal>mysql</literal> user is no longer the
user which performs the backup. Instead a system account
<literal>mysqlbackup</literal> is used.
</para>

<para>
The <literal>mysqlBackup</literal> service is also now using
systemd timers instead of <literal>cron</literal>.
</para>

<para>
Therefore, the <literal>services.mysqlBackup.period</literal>
option no longer exists, and has been replaced with
<literal>services.mysqlBackup.calendar</literal>, which is in
the format of <link
xlink:href="https://www.freedesktop.org/software/systemd/man/systemd.time.html#Calendar%20Events">systemd.time(7)</link>.
</para>

<para>
If you expect to be sent an e-mail when the backup fails,
consider using a script which monitors the systemd journal for
errors. Regretfully, at present there is no built-in
functionality for this.
</para>

<para>
You can check that backups still work by running
<command>systemctl start mysql-backup</command> then
<command>systemctl status mysql-backup</command>.
</para>
</listitem>
</itemizedlist>

<para>Other notable improvements:</para>
Expand Down

0 comments on commit 34eefdf

Please sign in to comment.