Skip to content

This program will create mysql database backup automatically

License

Notifications You must be signed in to change notification settings

NAVEEDNOORKHAN/MySQL-Auto-Backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySQL-Auto-Backup

This program automatically creates MySQL database backups.

Setup

  1. Edit config.php to add your database configuration:

    $host = "localhost";
    $user = "database_user";
    $password = "database_password";
    $database = "database_name";
  2. Edit nmail.php to add your email details:

    $sender_email = "from@website.com";
    $recipient_email = "email@website.com";
  3. Visit the URL where you placed index.php, like:

    https://yourwebsite.com/MySQL-Auto-Backup/index.php

Usage

You can use Cron Jobs to automate backups:

0 * * * * wget https://yourwebsite.com/MySQL-Auto-Backup/index.php
0 * * * * wget https://yourwebsite.com/MySQL-Auto-Backup/nmail.php

About

This program will create mysql database backup automatically

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages