Skip to content

Instantly share code, notes, and snippets.

@poolpOrg
Created April 29, 2022 23:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save poolpOrg/485716e5d4117939617cc561b351d086 to your computer and use it in GitHub Desktop.
Save poolpOrg/485716e5d4117939617cc561b351d086 to your computer and use it in GitHub Desktop.
example of
// create default repository, no encryption
$ plakar create -no-encryption
// create a clone
$ plakar clone to ssh://nas.poolp.org
// push backups locally
$ plakar push
$ plakar push
$ plakar push
// list backups
$ plakar ls
2022-04-29T23:13:25Z a82f3576 22 MB 0s /Users/gilles/Wip/github.com/poolpOrg/plakar/cmd/plakar
2022-04-29T23:13:27Z 52b169fc 22 MB 0s /Users/gilles/Wip/github.com/poolpOrg/plakar/cmd/plakar
2022-04-29T23:13:28Z c07d19b8 22 MB 0s /Users/gilles/Wip/github.com/poolpOrg/plakar/cmd/plakar
// push a backup remotely
$ plakar on ssh://nas.poolp.org push
// the backup is not available locally ...
$ plakar ls
2022-04-29T23:13:25Z a82f3576 22 MB 0s /Users/gilles/Wip/github.com/poolpOrg/plakar/cmd/plakar
2022-04-29T23:13:27Z 52b169fc 22 MB 0s /Users/gilles/Wip/github.com/poolpOrg/plakar/cmd/plakar
2022-04-29T23:13:28Z c07d19b8 22 MB 0s /Users/gilles/Wip/github.com/poolpOrg/plakar/cmd/plakar
// ...but available on the other end
$ plakar on ssh://nas.poolp.org ls
2022-04-29T23:15:50Z fdc5a4f7 22 MB 0s /Users/gilles/Wip/github.com/poolpOrg/plakar/cmd/plakar
// synchronize the remote snapshot to local repository...
$ plakar sync fdc5a4f7 from ssh://nas.poolp.org
$ plakar ls
2022-04-29T23:13:25Z a82f3576 22 MB 0s /Users/gilles/Wip/github.com/poolpOrg/plakar/cmd/plakar
2022-04-29T23:13:27Z 52b169fc 22 MB 0s /Users/gilles/Wip/github.com/poolpOrg/plakar/cmd/plakar
2022-04-29T23:13:28Z c07d19b8 22 MB 0s /Users/gilles/Wip/github.com/poolpOrg/plakar/cmd/plakar
2022-04-29T23:15:50Z fdc5a4f7 22 MB 0s /Users/gilles/Wip/github.com/poolpOrg/plakar/cmd/plakar
// ... and sync the full local repository to the remote repository
$ plakar sync to ssh://nas.poolp.org
$ plakar on ssh://nas.poolp.org ls
2022-04-29T23:13:25Z a82f3576 22 MB 0s /Users/gilles/Wip/github.com/poolpOrg/plakar/cmd/plakar
2022-04-29T23:13:27Z 52b169fc 22 MB 0s /Users/gilles/Wip/github.com/poolpOrg/plakar/cmd/plakar
2022-04-29T23:13:28Z c07d19b8 22 MB 0s /Users/gilles/Wip/github.com/poolpOrg/plakar/cmd/plakar
2022-04-29T23:15:50Z fdc5a4f7 22 MB 0s /Users/gilles/Wip/github.com/poolpOrg/plakar/cmd/plakar
// sync does not require a repository clone, it can work on arbitrary repositories,
// so it can happily sync an encrypted repository with a cleartext repository,
// a repository using a sqlite backend with an fs repository,
// or even two remote repositories:
$ plakar on ssh://debug.poolp.org sync to ssh://nas.poolp.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment