restore

command
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Command restore restores an archive from Proxmox Backup Server into a directory with a single gopbs.Restore call: the newest snapshot of the backup group by default, the whole archive or only the -path entries, v1 or v2 (told apart by the snapshot manifest). With -list it prints the archive's tree instead, without reading any file content.

Encrypted backups need -keyfile (passphrase from PBS_ENCRYPTION_PASSWORD for a protected key), or -master-key, the RSA master private key, whose passphrase is read from PBS_MASTER_PASSWORD.

The flag defaults match the test stack in tests/compose.yml:

cd tests && docker compose up -d garage pmoxs3
go run ./examples/backup-sync -source /tmp
go run ./examples/restore -id "$(hostname)" -list
go run ./examples/restore -id "$(hostname)" -target /tmp/restored

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL