[SOLVED] Add an old drive with VM backups for restauration

Maconly34

New Member
Jun 3, 2024
25
2
3
Hello,
I would like to add a disk containing backups from an old PBS to a new PBS in order to restore all my VMs.
Is this possible, and what is the procedure?
THANK YOU
 
Hi,
that's absolutely possible! The PBS data store is not much more than a folder. If the disk is mounted, the procedure would be to go to Datastore > Add Datastore and to provide the path to the mount point of the disk.
Since you are probably using ZFS for the old and new disk, were they named the same? That might complicate things, as ZFS can't have two pools with the same name. If not, you should see both with zfs list, usually they already have mount points listed, which you can use when creating the Datastore.
 
Thank you for your help,
OK, I run the PBS installation, then I create a Datastore by specifying the path of my external disk (USB).
 
I did this by adding an fstab entry to mount the disk to /mnt/backups then edited datastore.cfg like so

Code:
datastore: backups
        path /mnt/backups
 
Last edited:
I have this error below, Because I try to create a new Datastore on old Datastore backup ! What is the solution ?
Do I need to create a new datastore.cfg on PBS or PVE ??? (nano /etc/proxmox-backup/datastore.cfg) ??
unable to create chunk store 'pbs2' subdir "/mnt/backusb/.chunks" - EEXIST: File exists
 
Last edited:
To be on the safe side, I added a datastore on a USB stick, so I could see the file I wanted to edit.
I'm making progress.
A big THANK YOU for your precious help
bruno
 
Solution for those who have the same question:

PBS Add an old PBS "USB" backup disk to a new PBS

Install PBS on the PVE server virtual machine (default settings)
Plug the disk into a USB port
Add the USB disk to the PBS VM

On the PBS web interface with shell

List the new USB device with :
Code:
lsblk
Create a new mount point:
Code:
mkdir /mnt/usbtoto

Mount the target device with lsblk
Code:
mount /dev/sdxx /mnt/usbtoto

edit the datastore.cfg file (empty if no datastore):
Code:
nano /etc/proxmox-backup/datastore.cfg
.
contents
Code:
datastore: back2to
        path /mnt/usbtoto

Solution pour ceux qui auraient la même question :

PBS Ajouter un ancien disk "USB" de sauvegarde PBS à un nouveau PBS

Installer PBS sur machine virtuelle du serveur PVE (réglages par défaut)
Brancher le disque sur un port USB
Ajouter le disk USB à la VM PBS

Sur l’interface web de PBS avec la console

Lister le nouveau périphérique USB avec :
Code:
lsblk
Créer un nouveau point de montage :
Code:
mkdir /mnt/usbtoto

Monter le périphérique repérer avec lsblk
Code:
mount /dev/sdxx /mnt/usbtoto

éditer le fichier datastore.cfg (vide si aucun datastore) :
Code:
nano /etc/proxmox-backup/datastore.cfg
contenu
Code:
datastore: back2to
        path /mnt/usbtoto
 

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!