Commit a9c47fee authored by Bartłomiej Piotrowski's avatar Bartłomiej Piotrowski
Browse files

borg-client: use is-active for checking service state

Also add mariadb support
parent 66fe99e0
......@@ -26,10 +26,10 @@ if is_btrfs "$src"; then
src="$snapshotdir"
fi
# In case there is postgresql running, dump all of it somewhere.
systemctl status postgresql && /usr/local/bin/backup-postgres.sh || true
systemctl status mysqld && /usr/local/bin/backup-mysql.sh || true
systemctl is-active postgresql && /usr/local/bin/backup-postgres.sh || true
if systemctl is-active mysqld || systemctl is-active mariadb; then
/usr/local/bin/backup-mysql.sh || true
fi
borg create -v --stats -C lz4 \
-e /proc \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment