Skip to content

isabelgiang/fcopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

backup and restore files to and from s3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages