Skip to content
This repository was archived by the owner on Aug 8, 2018. It is now read-only.
/ mysqlbackup Public archive

A script to create mysql backups and keep backups with a retention scheme.

License

Notifications You must be signed in to change notification settings

RPDiep/mysqlbackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

mysqlbackup

A script to create mysql backups and keep backups with a retention scheme.
It creates backups every 15 minutes and every three hours a backup with Percona XtraBackup.

Requirements:

Installation:

  1. Create a .my.cnf file with mysql root credentials in /root:

    [client]
    user     = <mysql-root-user>
    password = <password>
    
  2. Install the script as /usr/local/sbin/backup

  3. Setup a cron job:

    */15 * * * * /usr/local/sbin/backup
    

Retention scheme:

  • 12 monthly backups are maintained
  • 4 weekly backups
  • 7 daily backups
  • 96 backups of every 6 hours
  • 48 backups of every 3 hours
  • 96 quarterly backups

About

A script to create mysql backups and keep backups with a retention scheme.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published