Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scottrobertson/backup
A backup system written in PHP that uses the Dropbox API.
https://github.com/scottrobertson/backup
Last synced: about 1 month ago
JSON representation
A backup system written in PHP that uses the Dropbox API.
- Host: GitHub
- URL: https://github.com/scottrobertson/backup
- Owner: scottrobertson
- Created: 2013-08-04T09:52:48.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-05-02T14:35:33.000Z (over 8 years ago)
- Last Synced: 2023-07-31T13:58:14.584Z (over 1 year ago)
- Language: PHP
- Homepage: http://scottrobertson.me
- Size: 287 KB
- Stars: 5
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Dropbox Backup
======A backup system written in PHP that uses the Dropbox API.
I recommend that you set MySQL and MongoDB up on an hourly cron, which will overwrite the file every hour (the files are stored in a 'ymd' folder), however Dropbox will keep all 24 revisions for that day for 30 days.
Folders should be setup on a weekly cron and will use 'ym' so you have 1 backup, and 4 versions per month.
**Still in very early development, test and test again before use.**
You can currently backup:
- MySQL
- MongoDB
- Folders/Files## Usage
```bash
bin/console dropbox:auth # Setup the Dropbox auth tokens
``````bash
bin/console export:all # Uses "export" from config.json (See below)
```or
```bash
bin/console export:mysql # Export MySQL
bin/console export:mongo # Export MongoDB
bin/console export:folders # Export Folders (set in config.json)
```## Example config.json
```json
{
"dropbox": {
"key": "",
"secret": ""
},
"host": "example.com",
"mongodb": {
"host": "localhost",
"port": 232323,
"password": "password",
"username": "admin",
"database": "test"
},
"mysql": {
"host": "localhost",
"password": "password",
"username": "root"
},
"export" : [
"mongodb",
"mysql",
"folders"
],
"folders" : [
"/var/www"
],
"exclude_folders" : [
"/var/www/site.com"
]
}
```