Skip to content

CyrilBaah/database-backupScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

database-backupScript

This Bash script is to automatically backup your database itself. An example a maybe a database cluster that contains a lot og databases. This scripts backups individual databases in the specified database cluster.

Info

This is in two forms

  • Local backup: Backups your local database and copies sql files to s3 bucket.
  • Online backup: Backups the online database and copies sql files to s3 bucket.

Usage

  1. Clone project
$ git clone https://github.com/CyrilBaah/database-backupScript.git
  1. Change directory to the current working directory
  2. Configure .env.example to .env with correct details
  3. Install AWS CLI
  4. Configure AWS CLI with
$ aws configure
  1. Make the script executable depending on the your preference
$ chmod +x local_db_backup.sh

Or

$ chmod +x online_db_backup.sh

About

This is a bash script to backup your database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages