Skip to content

whywaita/grasshopper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GrassHopper

very simply backup solution. GitHub as backend!

Usage

  • Execute binary
$ grasshopper you-want-to-backup-file
  • Automatic git commit and git push
  • You can view backup file on GitHub!

Configuration

Embedded binary (Recommend)

// change me to oneline
$ go build . -o grasshopper -ldflags '-X main.DefaultGitHubRepository=<your repo> 
  -X main.DefaultGitHubUser=<your user> 
  -X main.DefaultGitHubToken=<your token> '
$ mv grasshopper /your/binary/path/
  • Execute!
$ grasshopper you-want-to-backup-file

# or

$ grasshopper /etc/you-want-to-backup-file    

Environment value

You can set to config by Environment value.

  • GH_GITHUB_REPO
  • GH_GITHUB_USER
  • GH_GITHUB_TOKEN

About

hopping file to GitHub

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages