Download the PHP package fezfez/backup-manager without Composer
On this page you can find all versions of the php package fezfez/backup-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fezfez/backup-manager
More information about fezfez/backup-manager
Files in fezfez/backup-manager
Package backup-manager
Short Description A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.
License MIT
Informations about the package backup-manager
Database Backup Manager
This package provides a framework-agnostic database backup manager for dumping to and restoring databases from any file system.
- supports
MySQL
andPostgreSQL
- compress with
Gzip
- framework-agnostic
- dead simple configuration
Quick and Dirty
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 ^8.0
- 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.
We've provided a native PHP example here.
The required bootstrapping can be found in the example here.
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:
- Code style is PSR-2
- Interfaces should NOT be suffixed with
Interface
, Traits should NOT be suffixed withTrait
.
- Interfaces should NOT be suffixed with
- All methods and classes must contain docblocks.
- Ensure that you submit tests that have minimal 100% coverage. Given the project's simplicity it just makes sense.
- 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.
Backwards Compatibility Breaks
License
This package is licensed under the MIT license. Go wild.