depict.io

Awesome S3 backed picture backup and browser

npm install depict.io
8 downloads in the last month

depict.io

Awesome S3 backed picture backup and browser.

dependency status

Status

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

Installation

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

npm install depict.io

Usage

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

Requirements

Node.js

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

inotify

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.

exiv2

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

Debian/Ubuntu

apt-get install libexiv2 libexiv2-dev

ArchLinux

pacman -S exiv2

Fedora

yum install exiv2-libs exiv2-devel

License

MIT

npm loves you