treborin / db-backup-with-pdo-and-email-it

Take backup of MySQL Database with help of pdo php and email it with phpmailer to your email id.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

db-backup-with-pdo-and-email-it

Take backup of MySQL Database with help of PDO PHP and email it with PHPMailer to your email address.

USAGE

Add your config settings into the backup.config file (example settings in backup.config.example)

execute as

$ php -f pdo-db-backup.php

Edit and add Required parameters with your values.

Done...

You can Run this pdo-db-backup.php script in your browser or via cron job.

Base code taken with a big thank you from https://write.corbpie.com/php-pdo-mysql-backup-script-with-compression-option/

About

Take backup of MySQL Database with help of pdo php and email it with phpmailer to your email id.


Languages

Language:PHP 100.0%