Skip to content

szemmali/shell-DBA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

shell-DBA

Backup and Restore Data Base

👍 For Backup All MySQL Data Base click here :shipit:

Task:  			Backup MySQL Data Base
FILE:  			Backup_All_MySQL.sh
Description:  	This script will create a backup of each table in every database  (one file per table), 
                compress it and upload it to a remote ftp
Requirement:  	Create a new user only for backups, with following privileges: 
                SHOW DATABASES, SELECT, LOCK TABLES and RELOAD
Note:  			    Create daily cronjobs in /etc/crontab to backup runs daily 

👍 For Backup PSQL Data Base click here :shipit:

Task:  			Backup PSQL Data Base
FILE:  			Backup_PSQLL.sh
Description:  	This script will create a backup of database, 
                compress it and upload it to a remote ftp
Requirement:  	Create a new user only for backups, with following privileges: 
                SHOW DATABASES, SELECT, LOCK TABLES and RELOAD
Note:  			    Create daily cronjobs in /etc/crontab to backup runs daily 

Releases

No releases published

Packages

No packages published

Languages