Proxmox Backup Server: Difference between revisions
From DWIKI
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
| |||
= Documentation = | |||
== Recovering files from backup == | |||
export PBS_REPOSITORY=mypbs:mydatastore | |||
proxmox-backup-client snapshot list | |||
Output like: '''vm/109/2022-01-25T20:18:02Z │ 200.00 GiB │ client.log drive-ide0.img index.json qemu-server.conf''' | |||
# proxmox-backup-client map vm/109/2022-01-25T20:18:02Z drive-ide0.img | |||
Image 'data2:vm/109/2022-01-25T20:18:02Z/drive-ide0.img' mapped on /dev/loop0</nowiki> | |||
# lsblk | |||
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT | |||
loop0 7:0 0 200G 1 loop | |||
├─loop0p1 259:0 0 251M 1 part | |||
├─loop0p2 259:1 0 3.9G 1 part | |||
└─loop0p3 259:2 0 195.9G 1 part | |||
| |||
mount /dev/loop0p3 /mnt/loop/ | |||
mount: /mnt/loop: cannot mount /dev/loop0p3 read-only. | |||
mount -o loop,ro,norecovery /dev/loop0p3 /mnt/loop/ | |||
and that should be it. After you're done: | |||
umount /mnt/loop | |||
proxmox-backup-client unmap /dev/loop0 | |||
| |||
TBD: explain how t o use kpartx and friends to acces LVM volumes | |||
| |||
= FAQ = | = FAQ = | ||
Line 8: | Line 48: | ||
Possibly a permissions thing | Possibly a permissions thing | ||
==Pending removals== | == Pending removals == | ||
proxmox-backup-manager garbage-collection status mystore | proxmox-backup-manager garbage-collection status mystore |
Revision as of 12:00, 27 January 2022
Documentation
Recovering files from backup
export PBS_REPOSITORY=mypbs:mydatastore proxmox-backup-client snapshot list
Output like: vm/109/2022-01-25T20:18:02Z │ 200.00 GiB │ client.log drive-ide0.img index.json qemu-server.conf
# proxmox-backup-client map vm/109/2022-01-25T20:18:02Z drive-ide0.img Image 'data2:vm/109/2022-01-25T20:18:02Z/drive-ide0.img' mapped on /dev/loop0</nowiki>
# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 200G 1 loop ├─loop0p1 259:0 0 251M 1 part ├─loop0p2 259:1 0 3.9G 1 part └─loop0p3 259:2 0 195.9G 1 part
mount /dev/loop0p3 /mnt/loop/
mount: /mnt/loop: cannot mount /dev/loop0p3 read-only.
mount -o loop,ro,norecovery /dev/loop0p3 /mnt/loop/
and that should be it. After you're done:
umount /mnt/loop proxmox-backup-client unmap /dev/loop0
TBD: explain how t o use kpartx and friends to acces LVM volumes
FAQ
error pruning backups - check log (500)
Possibly a permissions thing
Pending removals
proxmox-backup-manager garbage-collection status mystore