- # Backup Commander
-
- Backup Commander is a simple web-based backup platform powered by PHP offering:
-
- - Easy installation
- - Intuitive UI
- - Incremental file backup
- - Backup scheduling
-
- ### Installation
- --------
- Backup Commander requires a running webserver such as apache using php
-
- 1. Grab the latest version from the repository: `git clone http://pearcey.net:8080/johnpearcey/backup-commander`
- 2. Navigate to the install folder `cd install`
- 3. Run the install bash script. Note that you must specify the web user which apache is serving as, e.g. www-root or http etc..
-
- The install.sh script will automatically pull the latest version so it can be run at any time to update the system.
-
- The first time install.sh is run, it will require the presence of conf.php. You will need to fill this in with specific information
- relative to your setup. An template file is supplied as conf-sample.php.
-
- The last thing which needs to be done is to edit the sudoers file using visudo. The following line should be added:
- > www-data ALL=(ALL) NOPASSWD: /usr/bin/php /var/www/html/bin/run-bu-by-id.php *
-
- This line shoul be towards the end of the file, e.g. AFTER the %sudo line if you have one.
-
- ><pre>
- Test by switching user to www-data:
- su -s /bin/bash www-data
- cd /var/www/html
- php bin/run-bu-by-id.php 19 0
- where 19 is the backup id and 0/1 is not-test/test
- </pre>
-
- Comment out /inc/secure.php in post_handler.php if the login is not required
-
-
- ### Project directory structure
- <pre>
- backup-commander
- └─html All web code. You can create a symlink to this directory for your web-server
- ├─bin Binary scripts runnable via bash. This directory is NOT served
- ├─css All CSS files
- ├─img All image files
- ├─inc All php files. This directory is NOT served
- ├─data All data files. This directory is NOT served
- └─js All JS files
- └─install Install and update scripts
- </pre>
-
-
- ### TODO
- --------
-
- <pre>
- update install script to ask questions to fill in details for conf.php
-
- get passwords from BD
- create a user credential page:
- new user+password
- change own password
- but only if the login is enabled (in post_handler.php)
- </pre>