Install USB hard drive for backups

mathewb

New Member
Feb 12, 2021
17
0
1
43
Hi there if I was to install a USB hard drive and put all of my backups on to it. Can I move that hard drive onto another proxmox server to restore the backups to it. How do I mount the hard drive onto the proxmox server
 
You can manually mount (CLI) the HDD somewhere, create a storage of type "directory" with content type "vzdump" pointing to that mountpoint and create or restore Backups. Shouldn't be a problem to move the drive between hosts to store/restore backups. Just keep in mind not to use automated backups so backups woudn't be written to the unmounted mointpoint which would result in everything be written to your system drive.
 
That depends on your filesystem. Its the same as with every Debian/Ubuntu.

-create a dir to work as a mountpoint (mkdir /media/usbhdd)
-make it owned by root (chown root:root /media/usbhdd) if created as non-root user
-if you got a new empty usb hdd, partition it with the tool of your choice (fdisk/parted/sgdisk) and format it (for example mkfs.ext4 /dev/sdX1)
-mount that usb hdd to the mountpoint created earlier (mount -t ext4 /dev/sdX1 /media/usbhdd)
-use Proxmox GUI to add the new directory storage

and if you want to unplug the drive:
-disable the directory storage so proxmox doesn'T try to access it
-unmount the drive umount /media/usbhdd
 
2. posibility would be to mount the usb drive as zfs.

Than you can use zpool import / export to manage your usb datastore.

I am using 2 scripts to mount/dismount 2 external usb drives as offline datastore
 

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!