Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 808 Bytes

README.md

File metadata and controls

47 lines (31 loc) · 808 Bytes

simple-backup

A simple backup program in golang. Uses cp -l (copy with hardlinks) and rsync to create incremental backups to an remote server via ssh

How to install

First you must install build enviroment

Mac OS

$ brew install go
$ brew install dep

Linux

$ yum install golang

... or ...

$ apt-get install golang

$ wget https://github.com/golang/dep/releases/download/v0.3.2/dep-linux-amd64
$ sudo mv dep-linux-amd64 /usr/local/bin/dep

Build

$ git clone https://github.com/johandalabacka/simple-backup
$ cd simple-backup
$ dep ensure

$ go build -o simple-backup *.go

Install

sudo cp simple-backup /usr/local/bin
sudo cp simple-backup-example.toml /etc/simple-backup.toml

Edit /etc/simple-backup.toml to match your setup