ftp2s3

command module
v0.0.0-...-d399132 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2016 License: MIT Imports: 13 Imported by: 0

README

ftp2s3

FTP Server that uploads to data. Not general purpose, designed to be the bare minimum to get data from D-Link cameras offsite.

Using

There's a docker container docker pull lstoll/ftp2s3

Alternatively you can fetch binaries:

Set up the following env:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • FTP2S3_BUCKET
  • FTP2S3_REGION (optional) AWS S3 region, default is us-west-1
  • FTP2S3_PREFIX prefix inside the bucket to store uploads
  • FTP2S3_USERNAME ftp username
  • FTP2S3_PASSWORD ftp password
  • FTP2S3_PORT (optional) port to listen on, default is 2121
  • FTP2S3_CACHE_DIR Dir files should be staged before uploading to S3. Not needed for docker image, it's already set.

Also set up your camera like this:

Camera settings screenshot

Make sure to use active FTP!

Documentation

Overview

An example FTP server build on top of go-raval. graval handles the details of the FTP protocol, we just provide a basic in-memory persistence driver.

If you're looking to create a custom graval driver, this example is a reasonable starting point. I suggest copying this file and changing the function bodies as required.

USAGE:

go get github.com/yob/graval
go install github.com/yob/graval/graval-mem
./bin/graval-mem

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL