depict.io

Awesome S3 backed picture backup and browser

depict.io

Awesome S3 backed picture backup and browser.

As of version 0.1.0 depict.io implements backup of pictures. Browsing of pictures is slated for future releases.

First satisfy the system requirements. Then install the module with NPM:

npm install depict.io

Start by creating a S3 bucket.

A few Amazon Web Services parameters needs to be provided. They can be provided by command line switches (see depict -h) or environment variables. The latter is recommended:

AWS_ACCESS_KEY=UTHOBOVPLUBLMIIERIJM
AWS_SECRET_KEY=DPEJH9Lf1GM2VQfHkAbSClERNsvTdmXi9vq76nBe
DEPICT_REGION=eu-west-1
DEPICT_BUCKET=mydepictbucket
export AWS_ACCESS_KEY AWS_SECRET_KEY DEPICT_REGION DEPICT_BUCKET

Start a server which watches /var/spool/depict for pictures to upload to S3 with:

depict

You can change the upload directory with:

depict -u /tmp/depict-upload

or alternatively use set the DEPICT_UPLOAD environment variable:

DEPICT_UPLOAD=/tmp/depict-upload
export DEPICT_UPLOAD

Then copy pictures to the upload directory:

cp -r /mnt/DCIM /var/spool/depict

depict.io requires Node.js version 0.10.0 or higher.

Since there is no cross plattform file watching abstraction which works cleanly without polling and supporting the granularity of file system events needed depict.io requires a Linux system with kernel 2.6.13 or higher.

The exiv2 library and headers are needed to build the exiv2node extension. You will probably find them in you native package manager:

apt-get install libexiv2 libexiv2-dev
pacman -S exiv2
yum install exiv2-libs exiv2-devel

MIT