shikiryu / backup
Backup script for limited shared hosting
Requires
- ext-fileinfo: *
- ext-ftp: *
- ext-json: *
- ext-mbstring: *
- ext-pdo: *
- ext-zip: *
- phpseclib/phpseclib: >=1.0.0
- spatie/dropbox-api: ^1.11
Requires (Dev)
- phpmd/phpmd: @stable
- phpunit/phpunit: ^9
- roave/security-advisories: dev-latest
- sebastian/phpcpd: 6.*
- squizlabs/php_codesniffer: 3.*
This package is auto-updated.
Last update: 2024-12-19 22:58:27 UTC
README
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