Skip to content

musil/linux_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Linux scripts

mysql-export-per-db.sh

Export all databases in a MySQL instance to separate files. And keeps retention of 7 days.

0 2 * * * /path/to/mysql-export-per-db.sh

backup account requires privileges:

CREATE USER 'backup'@'localhost' IDENTIFIED BY 'password';
GRANT SHOW DATABASES, SELECT, LOCK TABLES, RELOAD, SHOW VIEW ON *.* TO 'backup'@'localhost';

About

Linux scripts (mirrored)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages