[SOLVED] Restore PBS self after SMART Error

Mar 30, 2020
154
18
38
44
Hy

We have one PBS Version 2.4-6 installed on an single nvme via LVM. Smart Errors detected, think files also corrupted.
Now I want to change disk and reinstall the PBS. Because of an sync from an other PBS, I want to restore the pbs as same as possible.

Backup from PBS exists, tar czf "pbs-etc-backup-$(date -I).tar.gz" -C "/etc" "proxmox-backup"

Whats the best practise to restore an PBS?
Install a fresh 2.x PBS (with single zfs) and restore files from PBS-Backup?

Thanks for helping
Roland
 
Hy

We have one PBS Version 2.4-6 installed on an single nvme via LVM. Smart Errors detected, think files also corrupted.
Now I want to change disk and reinstall the PBS. Because of an sync from an other PBS, I want to restore the pbs as same as possible.

Backup from PBS exists, tar czf "pbs-etc-backup-$(date -I).tar.gz" -C "/etc" "proxmox-backup"

Whats the best practise to restore an PBS?
Install a fresh 2.x PBS (with single zfs) and restore files from PBS-Backup?

Thanks for helping
Roland
Hi,
relevant information about the proxmox backup server instance are located within the folder /etc/proxmox-backup. Unfortunately it will not be enough to copy/paste these files back to the fresh installation, as e.g. the datastores .chunks folder structure will not be set up (assuming you did not have a dedicated storage for the backups, then this does not apply). I recommend therefore to recreate the datastores based on the information of the backed up /etc/proxmox-backup/storage.cfg. The other configuration files should be less problematic and might be just copied over. Make sure to keep ownership and permissions of the files as they are.

To restore the backups from the other sync location, you will have to setup a dedicated sync job just for the resync, or use other means such as rsync to restore the datastores contents.

Edit: Added note about ownership and permissions.
 
Last edited:
Hy chris

I installed an fresh 2.3 and did an update to 2.4.x
After an zfs import I restored via copy/paste the following files
On PVE and second PBS i changed the finterprint

Files:
* verification
* datastore
*acl
*user
*prune
* remote


Datastore, prune,gc,verify restored successfully.
Also sync from second PBS works fine

kr
Roland
 
  • Like
Reactions: Chris

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!