Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 70ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
m

mariadb

Recently created Least recently created Recently updated Least recently updated
jackz

jackz / Backup galera cluster

Last active 7 hours ago mariadb

Puts a server into maintenance mode (maxscale), performs full backup, compresses and exits maintenance mode

0 0 1
1 #!/bin/bash
2 SERVER=server_hs2
3 BACKUP_OUTPUT=/tmp/backups
4 set -e
5
6 echo enter maintenance mode
7 maxctrl set server "$SERVER" maintenance
8 mariadb -e "SET GLOBAL wsrep_desync = ON;"
9
10 backup_dir=$(mktemp -d)