Skip to content

Dockerimage that downloads from ftp and syncs to Amazon S3

License

Notifications You must be signed in to change notification settings

Upptec/ftp_sync_to_s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Automated buil

FTP download and sync to S3

A small utility to download files from a ftp-server and sync them to a S3 target. Note: does not delete anything in the S3 target on sync.

Requirements

Set these env-vars for AWS CLI (or less if using EC2-roles) (see AWS CLI ENV-vars):

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • AWS_DEFAULT_REGION

Temp-volume

Be sure to bind a temporary volume to /tempdir (or somewhere else, but set env TEMP_BACKUP_DIR to that). The utility downloads to this target before syncing to S3.

Command

Entrypoint is the script download_and_sync.

The script takes these parameters: ftp://user:[email protected] s3://mybucket/myfolder

FTP-client: lftp.

Example

docker run --rm -it -e AWS_DEFAULT_REGION=eu-west-1 -e AWS_ACCESS_KEY_ID=xx -e AWS_SECRET_ACCESS_KEY=xx -v /backuptemp upptec/ftp_sync_to_s3 ftp://user:[email protected] s3://mybucket/myfolder

About

Dockerimage that downloads from ftp and syncs to Amazon S3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages