Giter Site home page Giter Site logo

rezafaghih / php-mysql-backup Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 26 KB

Database backup using php, This PHP script automates the process of taking database backups

PHP 100.00%
backup database database-backup database-backup-scripts mysql php php-library php-mysql phpmyadmin php-mysql-backup

php-mysql-backup's Introduction

php mysql backup

install and config

Clone or download the repository

git clone https://github.com/rezafaghih/php-mysql-backup.git

Configure the backup settings in the config.php file

define("host", "localhost"); // your database host (localhost is default)
define("username", "root"); // your database username (root is default)
define("password", ""); // your database password
define("database", "localhost"); // your database name


define("backup_directory", "backup"); // your backup directory
define("backup_email", ""); // your backup email address

and if you want to compress the backup file, you can change compress value in the config.php file and set it to true

include autoload.php file inside your project

    include_once "autoload.php";

then you can use backup class methods

    backup::simpleBackup($maxCount : int);

note : max count is optional (default value exist in config.php file)


  • add schedule in project
  • add email backup (send backup to email)
  • add client GUI to having better experince

php-mysql-backup's People

Contributors

rezafaghih avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.