An open API service indexing awesome lists of open source software.

https://github.com/jmathai/trovebox-sync


https://github.com/jmathai/trovebox-sync

Last synced: over 1 year ago
JSON representation

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