sincco/mysqlbkp

Create and restore MySQL backups

1.0 2018-07-02 04:48 UTC

This package is not auto-updated.

Last update: 2024-05-15 18:59:41 UTC


README

MySQLBkp

Crea y restaura backups desde MySQL, para facilitar las tareaas de respaldo de tu sistema

Basado en https://github.com/daniloaz/myphp-backup

Instalación

composer require sincco/mysqlbkp

Uso

Backup

$backupDatabase = new \Sincco\Tools\MySQLBkp('localhost', 'user', 'password', 'dbname', './bkp');
$backupDatabase->backupTables('*');

Restore

$backupDatabase = new \Sincco\Tools\MySQLBkp('localhost', 'user', 'password', 'dbname', './bkp', 'file.sql');
$restoreDatabase->restoreDb();

NOTICE OF LICENSE

This source file is subject to the Open Software License (OSL 3.0) that is available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php

Happy coding!