summaryrefslogtreecommitdiffstats
path: root/backups.d/database.sh
blob: 016d8e613f96102c5c3de642df78930be975cfe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# This script is used by the CRON Daemon to launch automated backups via the Restic backup utility


# Load restic varibles
source /etc/restic.d/linode.conf

# Perform database backup
mysqldump --all-databases | restic backup \
	"$RESTIC_COMMON_OPTS" \
	--tag database \
	--stdin --stdin-filename mariadb_dump.sql