sys-backup-skel/scripts/backup_mysql
2019-01-20 22:10:34 +01:00

5 lines
116 B
Bash

#!/bin/bash
ARCHIVE=/backup/mysql/$(hostname -s)_$(date +%F)_mysql.gz
mysqldump --all-databases | gzip > $ARCHIVE