Ho do I Restore pbs backups from NAS?

Adi M

Active Member
Mar 1, 2020
40
3
28
52
pve-manager: 7.2-3
proxmox-backup-server 2.1-6

After Upgrade of PB-Server there was a crash on reboot. At the end, ZFS was corrupted and I have to reinstall PBS.

Before I synced PBS to NAS-NFS.
So, how is the secure way to sync NAS back to PBS?
 
There is no datastore import function implemented yet. You would need to install a fresh PBS, copy your datastore folder from NAS back to your PBS and then add that folder as a new datastore in the "/etc/proxmox-backup/datastore.cfg".

Such an entry should look like this:
Code:
datastore: YourDatastoreName
    path /path/to/your/datastore/folder
 
Ok I copied hole folder to /mnt/datastore/mybackup and I can see the entry in datastore on PBS.
But on PVE the list of backups is empty.
 
Hi,

where are you not seeing the list of backups in PVE. Is it in the backup view of one of you VMs or when you look at the PBS storage added to PVE?
 
Both, when I look at the backup view of one of my VM and PBS storage added to PVE
 
Just to make sure, you have added the newly setup PBS to PVE as well?
 
Two more questions ;).
  • Can you create new backups on the new PBS?
  • Did you create some user on PBS or did you access it via root?
 
  • Yes, I can create new backup on the new PBS (separate datastore storage of corse)
  • So created pbs user is working ;)
 
I installed a second pbs and configured an sync from first one.
Copy to second pbs works and I can see the synced content.

But if I added the newly setup PBS clone datastore to PVE there are also no content. Same problem :rolleyes:
 
Next try: Can you post your PVE /etc/pve/storage.cfg and the output of

Code:
pvesm status
 
bkup-zeta01: is my working current new datastore
backup-zeta: is my old datastore, copied from NAS
bkup01-yps: is my second pbs with synced storage from datastore bkup01 on pve-zeta

PBS is additional installed on PVE.

/etc/pve/storage.cfg
Code:
dir: local
    path /var/lib/vz
    content iso,vztmpl,backup

zfspool: local-zfs
    pool rpool/data
    content images,rootdir
    sparse 1

pbs: bkup01
    disable
    datastore pbspool
    server 10.16.50.12
    content backup
    fingerprint b4:e5:57:6b:1d:f8:8e:27:32:...
    prune-backups keep-all=1
    username backup@pbs

pbs: bkup-zeta01
    datastore bkup01
    server 10.16.50.12
    content backup
    fingerprint 81:50:6a:f5:2f:c6:f4:cc:59:57:93:...
    prune-backups keep-all=1
    username backup@pbs

pbs: backup-zeta
    datastore backup
    server 10.16.50.12
    content backup
    fingerprint 81:50:6a:f5:2f:c6:f4:cc:59:57:93:...
    prune-backups keep-all=1
    username backup@pbs

pbs: nasbkup-zeta
    datastore naspkup
    server 10.16.50.12
    content backup
    fingerprint 81:50:6a:f5:2f:c6:f4:cc:59:57:93:...
    prune-backups keep-all=1
    username backup@pbs

pbs: bkup01-yps
    datastore bkup01-zeta
    server 10.16.50.13
    content backup
    fingerprint 9c:72:42:15:4d:f2:cb:84:79:cf:ab:32:...
    prune-backups keep-all=1
    username backup@pbs

pvesm status:
Code:
Name                Type     Status           Total            Used       Available        %
backup-zeta          pbs     active      1092712704       500098304       592614400   45.77%
bkup-zeta01          pbs     active      1673911808        48100352      1625811456    2.87%
bkup01               pbs   disabled               0               0               0      N/A
bkup01-yps           pbs     active       276111360        49878784       226232576   18.06%
local                dir     active      1092712704       500098304       592614400   45.77%
local-zfs        zfspool     active       625976763        33362262       592614501    5.33%
nasbkup-zeta         pbs     active      2882740768      1116946592      1765269888   38.75%
 
Last edited:
Can you try listing the content of one of the PBS servers that doesn't show anything via the CLI:

Bash:
pvesm list <one_of_the_empty_pbs>
 
If nasbkup-zeta is the storage that doesn't show you file in PVE. Call on the CLI on the PVE server:

Bash:
pvesm list nasbkup-zeta
 
Ah, I see. Well, those storage are all empty.

I tried with "pvesm list bkup01-yps" as synced from bkup-zeta01 and there is nothing to show while "pvesm list bkup-zeta01" shows desired data.
 
Last edited:
I'm a bit confused you worte "bkup-zeta01" two times. There is one that is broken, another one with the mounted directory and another one with the synced data form the one with the mounted directory. I'm not sure which one is which now :D, also there are 5 in your storage.cfg. Can solve this mystery for me?
 
Sorry, my fail. First word should be "bkup01-yps" :D I edited post #17
 
Last edited:
And bkup-zeta01 doesn't show anything via the web interface of PVE? Does it take long to display the list?
 

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!