aboutsummaryrefslogtreecommitdiffstats
path: root/system/backup-mysql.service
diff options
context:
space:
mode:
Diffstat (limited to 'system/backup-mysql.service')
-rw-r--r--system/backup-mysql.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/system/backup-mysql.service b/system/backup-mysql.service
new file mode 100644
index 0000000..c676839
--- /dev/null
+++ b/system/backup-mysql.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Backup MySQL databases
+ConditionFileIsExecutable=/usr/lib/systemd/scripts/backup-mariadb
+ConditionFileIsExecutable=/usr/bin/mysql
+
+[Service]
+EnvironmentFile=/etc/backup-settings
+Nice=19
+IOSchedulingClass=2
+IOSchedulingPriority=7
+ExecStart=/usr/lib/systemd/scripts/backup-mariadb
+