Restore from offsite

thoenny

Member
Aug 8, 2021
9
1
8
56
Hello,

slowly I get used to the pbs. It' s a wonderful piece of software:-) I'm backing up and restoring locally successfully with encryption and so on, but now I want be protected against earthquake on my location A. So I installed a second pbs in location B and added a remote (A). The sync works fine in my LAN, but how can I
  1. Transfer big Datasets from A to B via USB Harddisk (seed)
  2. Restore VMs from location B on my server on location A
As far as I learned up to now, I have to sync locally to USB Datastore on each pbs to itself. I wonder if there is (or will be) a more simple and elegant way to transfer the datastores.

Regards
Christoph
 
1. either via sync to a "local" remote, or by syncing the datastore using rsync (the built-in sync has better consistency guarantees, but might be a bit slower cause of HTTP2 overhead)
2. configure the remote PBS as PVE storage, just like you did with the local one

there is some work being done to allow "removable" datastores to streamline the handling, but for now just setting the USB datastore to "offline" should do the job after you've synced it.
 
Hi Fabian, thanks for your reply. I recently tested rsynch and remote synch. Both worked fine and I was able to recover my servers in my test lab. I think I prefer the rsync method because I can then mount and umount the usb disc in a script and carry this to my tresor or burry it in the garden :) .
But one more question: how do I set a datastore to offline?

Thanks in advance
Christoph
 
you can do the same with regular sync as well ;)

in PBS 2.x there's a maintenance mode that you can set over the GUI (under Datastore -> Options)
 
you can do the same with regular sync as well ;)

in PBS 2.x there's a maintenance mode that you can set over the GUI (under Datastore -> Options)
Ah, okay, thank you. I managed to set the datastore offline with (the name is USB)

proxmox-backup-manager datastore update USB --maintenance-mode offline

but still cannot umount my usb disk, because it is busy

And how can I change the maintenance mode back to none (in a script)?

regards,
Christoph
 
same command but with --delete maintenance-mode ;)

can you try doing systemctl reload-or-restart proxmox-backup-proxy after setting it to offline?
 
same command but with --delete maintenance-mode ;)

can you try doing systemctl reload-or-restart proxmox-backup-proxy after setting it to offline?
Thank you very much, that works, now I have (qnap is the online datastore mountet via nfs)

Code:
mount /dev/sdb1 /mnt/usb
proxmox-backup-manager datastore update usb --delete maintenance-mode
proxmox-backup-manager  pull local qnap usb
proxmox-backup-manager datastore update usb --maintenance-mode offline
systemctl reload proxmox-backup-proxy
umount /mnt/usb

Now I can by a book about bash scripting an learn how to handle exceptions and write things in a log file that can be read by my zabbix agent :)
Thanks a lot and best regards,
Christoph
 
  • Like
Reactions: fabian

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!