Download the PHP package heybigname/backup-manager without Composer
On this page you can find all versions of the php package heybigname/backup-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download heybigname/backup-manager
More information about heybigname/backup-manager
Files in heybigname/backup-manager
Package backup-manager
Short Description Database backup manager for dumping to and restoring databases from S3, Dropbox, FTP, and SFTP.
License MIT
Informations about the package backup-manager
IMPORTANT NOTICE
This repository has been completely removed and should NO LONGER be used. Find the new and improved version at Backup Manager.
Seriously, don't use this repo.
Database Backup Manager
- supports
MySQL
andPostgreSQL
- compress with
Gzip
- framework-agnostic
- dead simple configuration
- optional integrations for MVC framework Laravel
This package is completely framework agnostic. Mitchell has put together a video tour of Laravel integration, to give you an idea what is possible with this package.
Table of Contents
- Stability Notice
- Quick and Dirty
- Requirements
- Installation
- Usage
- Integrations
- Laravel
- Contribution Guidelines
- Maintainers
- License
Stability Notice
It's stable enough, you'll need to understand permissions.
This package is actively being developed and we would like to get feedback to improve it. Please feel free to submit feedback.
Quick and Dirty
Configure 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.
Backup to / restore from any configured filesystem.
Restore the database file test/backup.sql.gz
from Amazon S3
to the development
database.
This package does not allow you to backup from one database type and restore to another. A MySQL dump is not compatible with PostgreSQL.
Requirements
- PHP 5.4
- MySQL support requires
mysqldump
andmysql
command-line binaries - PostgreSQL support requires
pg_dump
andpsql
command-line binaries - Gzip support requires
gzip
andgunzip
command-line binaries
Installation
Composer
Run the following to include this via Composer
Then, you'll need to select the appropriate packages for the adapters that you want to use.
Usage
Once installed, the package must be bootstrapped (initial configuration) before it can be used. If you're using Laravel then skip directly to the Laravel integration section.
We've provided a native PHP example here.
The required bootstrapping can be found in the example here.
Integrations
The backup manager is easy to integrate into your favorite frameworks. We've included Laravel integration. We're definitely accepting pull-requests.
Laravel
To install into a Laravel project, first do the composer install then add the following class to your config/app.php service providers list.
Then, publish and modify the configuration file to suit your needs.
php artisan config:publish heybigname/backup-manager --path=vendor/heybigname/backup-manager/config
The Backup Manager will make use of Laravel's database configuration.
IoC Resolution
Manager
can be automatically resolved through constructor injection thanks to Laravel's IoC container.
It can also be resolved manually from the container.
Artisan Commands
There are three commands available db:backup
, db:restore
and db:list
.
All will prompt you with simple questions to successfully execute the command.
Contribution Guidelines
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:
- please conform to the code style of the project, it's essentially PSR-2 with a few differences.
- The NOT operator when next to parenthesis should be surrounded by a single space.
if ( ! is_null(...)) {
. - Interfaces should NOT be suffixed with
Interface
, Traits should NOT be suffixed withTrait
.
- The NOT operator when next to parenthesis should be surrounded by a single space.
- All methods and classes must contain docblocks.
- Ensure that you submit tests that have minimal 100% coverage.
- When planning a pull-request to add new functionality, it may be wise to submit a proposal to ensure compatibility with the project's goals.
Maintainers
This package is maintained by Mitchell van Wijngaarden and Shawn McCool of Big Name
License
This package is licensed under the MIT license.
All versions of backup-manager with dependencies
symfony/process Version 2.*
aws/aws-sdk-php Version ~2.4
league/flysystem Version >=0.3.1