PHPackages                             louis1021/mysql-php-backup-class - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. louis1021/mysql-php-backup-class

ActiveLibrary[Database &amp; ORM](/categories/database)

louis1021/mysql-php-backup-class
================================

Day end closing backup mechanism on database, as to prevent data loss

11PHP

Since Jul 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/louislee1021/MySQL-PHP-Backup-Class)[ Packagist](https://packagist.org/packages/louis1021/mysql-php-backup-class)[ RSS](/packages/louis1021-mysql-php-backup-class/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

MySQL Backup Class
==================

[](#mysql-backup-class)

This project provides a useful tool (PHP Class) to backup any MySQL database automaticall with Amazon S3 Support.

```
composer require louis1021/mysql-php-backup-class dev-master
```

> THE AMAZON S3 IS NOT READY YET!

Changelog
=========

[](#changelog)

202007151522 - Now we have the current working environment.

202007151454 - Revamped and fixed mysqldump, mysql system command.

202007151300 - Added namespace.

202007171257 - Rewritten the code and become a plugin.

202007171242 - Yes, I forked.

Features
========

[](#features)

```
- Backup the whole database (All Tables) in one single file
- Backup each DB table in a seperate SQL Dump File
- Exclude specific tables from your Backup
- Backup data on Amazon S3 (Optional)
- Allows custom dump options
- Restore the whole database on the fly (Runs Once)

```

Currently Working On:
=====================

[](#currently-working-on)

```
1. Add a Code Generation File
2. Validate user provided settings (DB Login and Amazon S3 Keys)
3. Validating user added dump options  (within the 'addDumpOption' Method)
4. Creating the automatic scheduling of the backup process (CronJobs Creator)
5. Read Backup from Amazon S3 Storage if the local copy isn't available (in restore)

```

Code Examples
=============

[](#code-examples)

#### Basic Backup Usage

[](#basic-backup-usage)

```
