https://github.com/jmathai/trovebox-sync
https://github.com/jmathai/trovebox-sync
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jmathai/trovebox-sync
- Owner: jmathai
- Created: 2014-01-15T07:17:21.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-06T06:53:10.000Z (almost 12 years ago)
- Last Synced: 2025-01-30T10:42:01.900Z (over 1 year ago)
- Language: PHP
- Size: 168 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Trovebox Sync
=============
Still in beta.
Requirements.
* PHP 5.3
* Sqlite3
## Git submodules
Make sure you update the submodules
```php
git submodule init
git submodule update
```
## Initialize local database
Create a database named *db.sqlite*.
```sh
sqlite3 db.sqlite
sqlite> .load db.sql
```
## Set up credentials
Create a file named `.secrets.json` with the following values.
```json
{
"host":"your.trovebox.domain.com",
"consumerKey":"***************************",
"consumerSecret":"**********",
"token":"***************************",
"tokenSecret":"**********",
"target":"/path/to/local/folder/to/store/photos"
}
```
## Run the script
You can run this script as frequently as needed and it will only download new photos.
```php
user# ./sync.php
```
## Not yet implemented
* Does not support deleting local files (2 way sync)
* Does not support updating new metadata