Quick start, self-hosted
Install
Section titled “Install”go install github.com/gobackio/goback/cmd/goback@latestMake a store key
Section titled “Make a store key”goback key new my-storeThis writes store.key, which encrypts names and contents before they leave the machine. Without it, your backups can’t be restored. To keep the key in the store under a passphrase instead, see Keys.
Point at a store
Section titled “Point at a store”export GOBACK_STORAGE=/backups/store GOBACK_INDEX=/backups/indexGOBACK_STORAGE |
Store |
|---|---|
/path |
a local directory |
gcs://bucket |
Google Cloud Storage |
s3://bucket?endpoint=… |
an S3-compatible bucket |
goback://<secret>@host:port |
a goback server |
GOBACK_INDEX is a directory for a SQLite index, or a postgres:// URL. Leave it out when you back up to a goback server, which keeps its own index. See Storage and index.
Back up
Section titled “Back up”goback --store-key store.key --set home commit new ~/home is the set, a series of snapshots of one directory. Later commits upload only what changed.
goback --store-key store.key --set home commit list- Restore
- Retention and maintenance: run
goback maintainfrom cron. - The agent: run a machine’s backups on their schedules from one config file.