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.
| Flag | Description | Default |
|---|---|---|
--snapshot <id> | Snapshot ID to restore | latest |
--tables <list> | Comma-separated table list (database tools) | - |
--safety-backup | Create safety backup before restore | true |
# 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
Related
- lift db - Database-specific backups with pgBackRest (PITR)
- lift install - Install a tool on the server