Database backup manager for dumping to and restoring databases from S3, Dropbox, FTP, SFTP, and Rackspace Cloud
Database backup manager for dumping to and restoring databases from S3, Dropbox, FTP, SFTP, and Rackspace Cloud
This package provides a framework-agnostic database backup manager for dumping to and restoring databases from S3, Dropbox, FTP, SFTP, and Rackspace Cloud.
Watch a video tour showing the Laravel driver in action to give you an idea what is possible.
MySQL and PostgreSQLGzipConfigure your databases.
…Configure your filesystems.
…Backup to / restore from any configured database.
Backup the development database to Amazon S3. The S3 backup path will be test/backup.sql.gz in the end, when gzip is done with it.
use BackupManager\Filesystems\Destination;
$manager = require 'bootstrap.php';
$manager->makeBackup()->run('development', [new Destination('s3', 'test/backup.sql')], 'gzip');Backup to / restore from any configured filesystem.
Restore the database file test/backup.sql.gz from Amazon S3 to the development database.
$manager = require 'bootstrap.php';
$manager->makeRestore()->run('s3', 'test/backup.sql.gz', 'development', 'gzip');This package does not allow you to backup from one database type and restore to another. A MySQL dump is not compatible with PostgreSQL.
mysqldump and mysql command-line binariespg_dump and psql command-line binariesgzip and gunzip command-line binariesComposer
Run the following to include this via Composer
composer require backup-manager/backup-managerThen, you'll need to select the appropriate packages for the adapters that you want to use.
…Once installed, the package must be bootstrapped (initial configuration) before it can be used.
We've provided a native PHP example here.
The required bootstrapping can be found in the example here.
We recommend using the vagrant configuration supplied with this package for development and contribution. Simply install VirtualBox, Vagrant, and Ansible then run vagrant up in the root folder. A virtualmachine specifically designed for development of the package will be built and launched for you.
When contributing please consider the following guidelines:
Interface, Traits should NOT be suffixed with Trait.This package is maintained by Shawn McCool and you!
Remove support for symfony 2. Specifically symfony/process versions < 3.x
This package is licensed under the MIT license. Go wild.
No open issues yet, or sync has not completed.