Mounting a datastore from one Proxmox Backup Server (PBS) onto another PBS (e.g., for backups transfer or redundancy) isn't supported directly in terms of mounting a remote PBS datastore like a network share. However, there are reliable and common approaches to access or replicate data between two PBS servers:
✅ Recommended Way: Configure Remote Sync between Two PBS Servers
If you want to "mount" or synchronize backups between two PBS systems, use the built-in Remote Sync Job.
🔄 Option 1: Use a Remote Sync Job (Best Practice)
🔧 Steps:
On PBS-A (main PBS):
Go to Configuration → Remote.
Add the remote PBS-B:
Enter IP/hostname
Set the port (8007 by default)
Provide a valid username and API Token or password
Test & add the remote
Create a Sync Job:
Go to Datastore (on PBS-A) → Sync Jobs → Add
Choose:
Remote (added in step 1)
Select the remote datastore (on PBS-B)
Choose target local datastore (PBS-A)
Set schedule or run manually
Result:
PBS-A will sync backups from PBS-B
This is read-only on the target but gives datastore access
📦 Option 2: Mount via NFS/SSHFS/SMB (Not Recommended for Live PBS Use)
If you're trying to mount a datastore from one PBS into another (e.g., for shared access or manual moves), you can do so with:
Option A: Using NFS
On PBS-B (export the datastore):
bash
# On PBS-B
sudo apt install nfs-kernel-server
sudo nano /etc/exports
sudo exportfs -a
sudo systemctl restart nfs-kernel-server
On PBS-A (mount the NFS share):
bash
mkdir -p /mnt/pbs_remote
sudo mount 192.168.1.101:/mnt/datastore_backups /mnt/pbs_remote
You can now add the mounted directory as a datastore in PBS-A GUI or config file.
⚠️ Warning: This is not a supported way to run PBS actively against a network-mounted datastore — only use it for manual access or offloading/archiving backups.
🛑 DO NOT:
Directly edit or write to files inside the PBS datastore (like you might in Proxmox VE with NFS storage) without PBS knowing.
Mount the main PBS's live backup storage via NFS to another PBS and expect deduplication/indexing to work correctly — PBS needs internal integrity checks, handled via sync APIs.
✅ Conclusion: Use Remote Sync – It’s the Right Way
Mounting backups indirectly = Remote Sync Jobs
It ensures indexing, deduplication, and encryption are handled correctly, compared to manually mounting storage which risks data corruption or mismanagement.
If you tell me exactly what you're trying to achieve (e.g., "have PBS-B read from PBS-A's datastore"), I can tailor the solution more!
User
Jak dodać datastore utworzone na innym PBS dp proxmox backup server będące na dysku USB?
Assistant
Jeśli masz dysk USB z danymi z innego Proxmox Backup Server (PBS), na którym znajduje się datastore, i chcesz go zamontować i dodać w innym PBS (nowym lub innym serwerze), postępuj według poniższej instrukcji. To częsty przypadek np. przenoszenia danych na zewnętrznym dysku.
✅ Co chcemy osiągnąć:
Zamontować dysk USB z fizycznym datastore utworzonym wcześniej na innym PBS.
Dodać ten datastore do nowego PBS i mieć do niego dostęp (np. do odtwarzania backupów).
🧰 Krok po kroku:
🔌 1. Podłącz dysk USB do nowego PBS
Upewnij się, że dysk się pojawił:
bash
lsblk
Przykład:
code
sdb 8:16 0 500G 0 disk
└─sdb1 8:17 0 500G 0 part /mnt/usb-backup
📁 2. Zamontuj dysk USB
Jeśli system plików to np. ext4:
bash
# Utwórz katalog do montowania
mkdir -p /mnt/usb-backup
# Zamontuj ręcznie
mount /dev/sdb1 /mnt/usb-backup
# Sprawdź zawartość
ls /mnt/usb-backup
📌 5. (Opcjonalnie) Automatyczny montaż po restarcie
Dodaj wpis do /etc/fstab, np.:
code
/dev/sdb1 /mnt/usb-backup ext4 defaults 0 2
Upewnij się, że UUID urządzenia się nie zmieni. Lepiej użyć UUID:
bash
blkid
Wtedy wpisuj do fstab tak:
code
UUID=XXXX-YYYY /mnt/usb-backup ext4 defaults 0 2
✅ Teraz możesz:
Przeglądać backupy z GUI PBS
Odtwarzać maszyny / kontenery / pliki
Ręcznie kopiować backupy do innego datastore lub tworzyć Sync/Kopię
🛑 Uwaga
PBS nie może korzystać z tej lokalizacji jednocześnie z dwóch serwerów. Jeśli dysk był "aktywnym" datastore na innym PBS, upewnij się, że tylko jeden serwer go używa w danym momencie, by uniknąć błędów integralności.
Jeśli chcesz np. przenieść backupy do innego datastore na stałe, mogę też pokazać jak zrobić to bezpiecznie.