Skip to content
WIP

This guide is a work in progress. Barry is also a work in progress.

barry db

Back up, restore, roll back, recover or prune the stores this instance runs on.

barry db [options] [command]
Subcommand Description
backup Back up every store and the vault.
rollback Make the store generation that was active before this one active again.
recover Finish a store generation switch that was interrupted, or undo it when it cannot finish.
prune Delete store generations older than the active one and the one before it.
restore Restore a barry db backup into a new store generation and switch to it.

Back up every store and the vault.

barry db backup [options] [destination]
Argument Required
destination Optional
Option Description
--vault Include the machine’s vault even when BARRY_HOME names another instance.

Make the store generation that was active before this one active again.

barry db rollback [options]
Option Description
--yes Roll back without an interactive confirmation.

Finish a store generation switch that was interrupted, or undo it when it cannot finish.

barry db recover [options]

Delete store generations older than the active one and the one before it.

barry db prune [options]
Option Description
--yes Prune without an interactive confirmation.

Restore a barry db backup into a new store generation and switch to it.

barry db restore [options] <directory>
Argument Required
directory Required
Option Description
--replace-installation Restore onto a home with a different installation id, making it the backup’s installation.

Every command also accepts -h, --help. All system commands.