thecodingcompany / backupify
PHP Library to use with api.backupify.io
v1.0
2017-11-24 10:01 UTC
Requires
- php: >=5.6.0
This package is not auto-updated.
Last update: 2024-12-22 06:13:53 UTC
README
Backup your data and store it remotely with Backupify.
<?php
/**
* Intellectual Property of Svensk Coding Company AB - Sweden All rights reserved.
*
* @copyright (c) 2016, Svensk Coding Company AB
* @author V.A. (Victor) Angelier <victor@thecodingcompany.se>
* @version 1.0
* @license http://www.apache.org/licenses/GPL-compatibility.html GPL
*
*/
require_once "autoload.php";
$backup = new theCodingCompany\Backupify("your.public.ip.address", "/home/backups");
$backup->setMySQLPassword("SuperSecretRootPassword")
->backupMySQL() //Or a single DB
->compressBackup() //Tar and GZIP compress
->notify(); //Send 'ready' notification to the Backupify API
After sending the notification Backupify will download the file through SCP. You need to add our SSH-Public-Key to your authorized_keys file in order to download the file.