agrippanux / gobackup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gobackup

Gobackup backs up a directory or file to S3.

Usage

The env variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY must be set. A .env file can be used to set them.

The following flags are required

-s3region=<s3 region>
-s3bucket=<s3 bucket>
-source=</path/to/source/directory/or/file>

The following flags are optional

-prefix=<prefix of the s3 path, ie a prefix of darren would make the s3 path <s3bucket>/darren/<file>
-env=</path/to/envfile>

Example usage

/usr/local/bin/gobackup -s3region=us-west-2 \
-s3bucket=replace-me -source=/home/directory \
-env=/path/to/env/file \
-prefix=test

woohoo!!!!!

About


Languages

Language:Go 100.0%