sys-backup-skel/scripts/backup_mysql

6 lines
116 B
Text
Raw Normal View History

2019-01-20 22:09:02 +01:00
#!/bin/bash
ARCHIVE=/backup/mysql/$(hostname -s)_$(date +%F)_mysql.gz
mysqldump --all-databases | gzip > $ARCHIVE