Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

rezafaghih/php-mysql-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

19 Commits

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /