This repository has been archived by the owner. It is now read-only.
Tool to check backup integrity
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
backup.php
check-backup.sql
composer.json
config.php.dist

README.md

Check backup

Tool to check backup integrity. It is based on this structure : Lightroom Workflow Check backup result

Install

Clone this repository

Install via composer

php composer.phar install

Copy config file

cp config.php.dist config.php

Update file

$config=array(
    "mysql_host" => "localhost",
    "mysql_name" => "check-backup",
    "mysql_user" => "root",
    "mysql_passwd" => "root",
    "masterhost" => "remote.server.com",
    "allow_client" => array("local", "remote", "remote2"),
    "support_config"=>array(
        "local" => array(
            "root_folder"=>'/home/users/Lightroom/'
        ),
        "remote" => array(
            "root_folder"=>'/remote/users/Lightroom/'
        ),
        "remote2" => array(
            "root_folder"=>'/remote2/users/Lightroom/'
        )
    )
);
  • mysql_host : address to mysql server
  • mysql_name : databse name
  • mysql_user : mysql user
  • mysql_passwd : mysql password
  • masterhost : when script act as client, it will send data to this address
  • allow_client : when script act as client, look for specific config
  • support_config : list of config for client mode
  • root_folder : for each client, parse folder

Use it

1. Build reference

To be able to compare against other media, you have to initialize database.

php backup.php build-reference

2. Send data from client

php backup.php client local

3. Check integrity

php backup.php check

4. View the result :)

By default, it run as server mode. Just go to http://localhost/check-backup/backup.php