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