lift backup

Manage tool backups with Restic including trigger, restore, init, and prune operations.

lift backup

Manage backups for tools installed on the server. Uses Restic for incremental, encrypted backups with support for local and S3 storage.

Subcommands

lift backup run <tool>

Trigger a backup for a specific tool on the server.

lift backup run redis
lift backup run postgresql

lift backup restore <tool>

Restore a tool from a backup snapshot.

FlagDescriptionDefault
--snapshot <id>Snapshot ID to restorelatest
--tables <list>Comma-separated table list (database tools)-
--safety-backupCreate safety backup before restoretrue
# Restore from latest snapshot
lift backup restore redis

# Restore from a specific snapshot
lift backup restore postgresql --snapshot abc123

# Restore without safety backup
lift backup restore redis --safety-backup=false

lift backup init <tool>

Initialize the backup repository for a tool. Required before the first backup.

lift backup init redis
lift backup init postgresql

lift backup prune <tool>

Prune old backup snapshots based on retention policy.

Default retention: keep-last=10, keep-daily=30, keep-weekly=4, keep-monthly=6.

lift backup prune redis
lift backup prune postgresql
  • lift db - Database-specific backups with pgBackRest (PITR)
  • lift install - Install a tool on the server