Skip to content

Latest commit

 

History

History
54 lines (31 loc) · 1.44 KB

README.md

File metadata and controls

54 lines (31 loc) · 1.44 KB

fcopy

This CLI application recursively traverses the files of a local directory and makes a backup to the cloud. Backups are stored on buckets in AWS's Simple Storage Service (S3), which are accessed using the user's locally exported AWS credentials.

Tools Used

Setup

0 ) Set up and configure your AWS credentials. See instructions here.

1 ) Download and install Golang. See instructions here.

2 ) Run the following command:

go install github.com/hollowsunsets/fcopy

3 ) Export the AWS region that you use to create S3 buckets:

export AWS_REGION=us-east-1

Usage

fcopy backup <directory_name> <bucket_name>
fcopy backup --directory <directory_name> --bucket <bucket_name> 

Backup Example

fcopy restore <bucket_name> <directory_name>
fcopy restore --directory <directory_name> --bucket <bucket_name 

Restore Example

Notes

  • If you attempt to make a backup to an S3 bucket that does not appear to exist, a new S3 bucket with that bucket name will be created for you.
  • If you attempt to restore from an S3 bucket to a local directory that does not exist, a new directory will be created for you.