2017 © Pedro Peláez
 

project backup

Lightweight MySQL backup script for cron jobs, written in PHP.

image

journey/backup

Lightweight MySQL backup script for cron jobs, written in PHP.

  • Monday, April 16, 2018
  • by justin-schroeder
  • Repository
  • 2 Watchers
  • 1 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Backup

Why

Journey/Backup is a lightweight MySQL backup script written in PHP, and ideal for cron jobs. Its task is simple:, (*1)

  • Dump a user-selected list, or all databases on the local MySQL server
  • Store those databases in a mounted directory, or on Amazon S3

Usage

Installation

The easiest way is to install via composer:, (*2)

composer create-project journey/backup your-directory-name

Configuration

To configure, edit the config.php file with your own details. Here's is the sample configuration file, with helpful comments:, (*3)

<?php

return [
    // Local database connection details
    'connection' => [
        'host' => "127.0.0.1",
        'username' => "mysql-username",
        'password' => "mysql-password",
    ],

    // String of databases to back up, empty value will backup all databases
    'databases' => [],

    // Location of the storage, can be absolute directory or s3 stream (s3://bucket-name)
    'storage' => 's3://your-s3-bucket',

    // List of AWS Connection credentials
    'aws' => [
        'key' => 'your-aws-key',
        'secret' => 'your-aws-secret'
    ],

    // Temporary location for dump
    'temp' => '/tmp'
];

Note: The host parameter is used only when databases is set to auto-discover all databases (empty array), otherwise all calls to MySQL are performed via shell operation., (*4)

Schedule

Scheduling your backups is as simple as setting up a cron job to execute the boot.php file., (*5)

The Versions

16/04 2018

dev-master

9999999-dev http://github.com/journeygroup/backup

Lightweight MySQL backup script for cron jobs, written in PHP.

  Sources   Download

MIT

The Requires

 

mysql backup cron

16/04 2018

0.1.2

0.1.2.0 http://github.com/journeygroup/backup

Lightweight MySQL backup script for cron jobs, written in PHP.

  Sources   Download

MIT

The Requires

 

mysql backup cron

16/02 2015

v0.1.1

0.1.1.0 http://github.com/journeygroup/backup

Lightweight MySQL backup script for cron jobs, written in PHP.

  Sources   Download

MIT

The Requires

 

mysql backup cron

16/02 2015

v0.1

0.1.0.0 http://github.com/journeygroup/backup

Lightweight MySQL backup script for cron jobs, written in PHP.

  Sources   Download

MIT

The Requires

 

mysql backup cron