danilocgsilva / backupphp
Generates a sql file entirely trough php code
1.2.3
2018-01-20 16:36 UTC
Requires
- php: ~5.4 | ^7.0
- dev-master
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.1
- 1.0.0
- 0.0.36
- 0.0.35
- 0.0.34
- 0.0.33
- 0.0.32
- 0.0.31
- 0.0.30
- 0.0.29
- 0.0.28
- 0.0.27
- 0.0.26
- 0.0.25
- 0.0.24
- 0.0.23
- 0.0.22
- 0.0.21
- 0.0.20
- 0.0.19
- 0.0.18
- 0.0.17
- 0.0.16
- 0.0.15
- 0.0.14
- 0.0.13
- 0.0.12
- 0.0.11
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
- dev-database_prefix
This package is auto-updated.
Last update: 2024-11-14 20:05:49 UTC
README
Generates a sql backup entirely by php code
Install
composer require danilocgsilva/backupphp
Usage
Once you've installed the package in your project, just call:
\Danilocgsilva\Backupphp::backup('mysql_host', 'mysql_user', 'database_name', 'password', 'full_server_path_to_store_sql_files', (optional)'database_prefix', (optional)'database_encoding');
Security Notice
There's no security checkings after the backup method is called! It was thought out to serve as an api function, so after entering the parameters in the backup()
method, you must make your own security filtering.
Where it was already successfully tested
- Recovering a basic WordPress database.
- Recovering a 60mb database serving several system, including some wordpresses and drupal installations. Not tested the systems after restoring, but that was no error on restoring.
ToDo
Provides a csrf_token to put some security in html forms.