mirror of
https://github.com/Chouchen/Shikiryu_Backup.git
synced 2021-06-30 16:02:14 +02:00
app | ||
docs | ||
tests | ||
.drone.yml | ||
.gitignore | ||
composer.json | ||
composer.lock | ||
phpunit.xml | ||
README.md |
Shikiryu Backup
Because even small websites need to be backed up
Backup script for limited shared hosting
π Table of Contents
π¦ Installation
First check if you have composer installed
Before installing this, you need to check if you have PHP
and Composer
installed on your computer.
Then install this script
composer require shikiryu/backup
π Usage
Everything in this library is based on a scenario (or multiple scenarii).
It consists of 2 sections in a JSON file :
- what to backup
- where to backup
You have an example file in app/scenario
.
The first section is backup
(what to backup) and the second transport
More information about how to use scenario
Tips
Each possible section has docs in their respective folders
Here is an example code
<?php
include_once 'vendor/autoload.php';
try {
\Shikiryu\Backup\Scenario::launch('backup.json'); // whatever the file name you gave previously
} catch (\Exception $e) {
echo $e->getMessage();
}
π οΈ Support
Please open an issue for support.
π Contributing
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.
π License
Creative Commons Attribution NonCommercial (CC-BY-NC) Β© Chouchen