Download the PHP package floor12/yii2-module-backup without Composer

On this page you can find all versions of the php package floor12/yii2-module-backup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-module-backup

yii2-module-backup

Build Status Scrutinizer Code Quality Latest Stable Version Latest Unstable Version Total Downloads License

Этот файл доступен на русском языке.

This module helps to create and restore backups of databases and files stored on disk. It has web-interface, console commands, and REST-API for remote control. It also supports io-priority settings and has flexible configuration options. To work independently of the application database, this module uses its sqlite database in the backup folder.

Creating and restoring database backups is possible for MySQL and [PostgreSQL] (https://www.postgresql.org/). To do this, you must have the console client installed on the system for your database type. After a series of experiments, it became clear that creating and restoring databases   best using their native clients.

i18n

Now, this module supports English and Russian languages.

Yii backup module

Installation

To add this module to your app, just run:

or add this to the require section of your composer.json.

After that, include minimal module configuration in modules section of application config:

These parameters is possible to set up:

Usage

WEB interface

This module has a web controller to work with backups. Go to backup/admin or backup/admin/index to create, delete, restore and download backups.

Console interface

To list all existing backups run

To create config run

backup_config_id is backup item identifier from module configuration.

To restore config run

backup_id is identifier of backup stored in sqlite database

REST-api

By default, rest controller takes place on the route /backup/api. To get access to it, add header Backup-Auth-Token to request with one of the tokens stored in application config in the module section (param authTokens);

Get list of backups

GET /backup/api/index

This is useful to remote backup checks from some dashboard with a few projects.

Response example:

Create new backup

POST /backup/api/backup?config_id=<backup_config_id>

Succes respons example:

Restore from backup

POST /backup/api/restore?id=<backup_id>

Succes respons example:

Delete backup

DELETE /backup/api/delete?id=<backup_id>

Succes respons example:

Get backup file

GET /backup/api/get?id=<backup_id>

This request will return backup archive with requested ID.


All versions of yii2-module-backup with dependencies

PHP Build Version
Package Version
Requires ext-zlib Version *
yiisoft/yii2 Version ~2.0.19
yii2mod/yii2-enum Version ^1.7
floor12/yii2-notification Version ~1.3.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package floor12/yii2-module-backup contains the following files

Loading the files please wait ....