How can I attach a Datastore Backup from a USB Hard Drive to Copy to New Datastore?

dmarc2024

New Member
Dec 6, 2024
7
2
3
Hey All -

I needed to redo my PBS install - I backed up the old install by creating a localhost remote, attaching the USB Drive and creating a sync job - all the data and namespace info is on the USB and I can see it from the shell by going to /mnt/backups.

My question is, how do work this in reverse to now mount the USB Datastore backup and move its contents to the new datastore which is on freshly formatted drives?

If I try to attach the backup datastore and provide a "backing path" it complains that chunks already exist and stops.

Thanks

EDIT- I was able to mount the USB and then add the path and information back into /etc/proxmox-backup/datastore.cfg and it reappeared in the GUI.

datastore: backupUSB
comment
gc-schedule daily
notification-mode notification-system
path /mnt/backup

and then create a sync job and run it and all is back on the new datastore on the new PBS.
 
Last edited:
  • Like
Reactions: dgsnb
In PBS 3.3 there's a checkbox Reuse existing datastore which is meant to do just that: readd an existing datastore in a given path. Previously you could only do it from CLI or editing datastores.cfh file as you did.

Could not find a mention in the docs for the new GUI option, though...