2017 © Pedro Peláez
 

library backup-lib

PHP Backup Library

image

p13eater/backup-lib

PHP Backup Library

  • Wednesday, May 20, 2015
  • by p13eater
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

backup-lib

Modular backup library allowing easy creation of both backup and storage modules, (*1)

Usage

<?php
$backup = new \BackupLib\Backup(__DIR__ . '/config.yml');

// Optionally set PSR standard logger
$backup->setLogger($logger);

// Start the backup
$backup->run();


Config

Example configuration file, (*2)

settings:
  notification_emails:
    email@dress1.com: Name
    email@dress2.com
jobs:
  Job Name 1:
    module: MySQL
    config:
      method: mysqldump
      user: root
      pass:
      port: 3306
    storage:
      LocalFile:
        location: /tmp/backup
  Job Name 2:
    module: File
    config:
      dirs: /var/www
      exclude: cache
    storage:
      SSH2:
        server: 127.0.0.1
        user: backup
        password:
        key:
        location: /tmp/backup

Modules

File

Config Options

  • dirs
  • exclude

MySQL

Config Options

  • user: root
  • pass:
  • port: 3306
  • host: 127.0.0.1
  • filePerTable: true
  • excludedDatabases
  • includedDatabases

Storage

LocalFile

Config Options

  • location = /tmp

SSH2

Backup using the SSH2 extension to a remote SFTP server, (*3)

Requires ext-ssh2, (*4)

Config Options

  • hostname
  • user
  • pass
  • pubKey
  • privKey
  • remoteLocation
  • authType

Google Drive

Requires p13eater/google-helper, (*5)

Config Options

  • clientId
  • clientSecret
  • accessTokenLocation
  • refreshTokenLocation

The Versions

20/05 2015

dev-master

9999999-dev https://github.com/p13eater/backup-lib

PHP Backup Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Craig McMahon

sftp backup google drive

25/03 2015

0.1.3

0.1.3.0 https://github.com/p13eater/backup-lib

PHP Backup Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Craig McMahon

sftp backup google drive

20/03 2015

0.1.2

0.1.2.0 https://github.com/p13eater/backup-lib

PHP Backup Library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Craig McMahon

backup

16/03 2015

0.1.1

0.1.1.0

PHP Backup Library

  Sources   Download

MIT

The Requires

 

by Craig McMahon

16/03 2015

0.1.0

0.1.0.0

PHP Backup Library

  Sources   Download

MIT

The Requires

 

by Craig McMahon