Skip to content

philbirnie/db_backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generic Database Backup Script

Purpose

This is a generic database backup script that will automatically save gzipped database dumps for 10 days.

Installation

Place this repository in a directory above the web root.

Set database variables (host, login, password, database) within the backup.sh script. You will also need to add a reference to this script to your cron. Example that will run this script each day at 4:01 AM.

1 4 * * * /path/to/backup.sh > /path/to/backup/cron.log 2>&1

About

Database Backup Script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages