How to backup vms on an external SSD? PVE doesn't show my SSD as an option to backup to.

Roguestratus

New Member
Nov 24, 2022
11
1
3
Still new to all of this, so apologies in advance.
I picked up an enterprise external SSD to backup my vms, and clicking on "backup now" on the vms doesn't show the SSD to back it up on.
I see i'm supposed to mount my drive, but problem is there is alot of guides that show how to do this but they all significantly differ from one and another so its hard to know which guide exactly to use to mount my drive, and im scare to do something I don't know will actually work or not.
All I know is that my drive shows /dev/sdc, it doesn't have sdc1 or anything like that.
Basically, how exactly do I mount my drive and get it up and running to backup my vms?
 
1.) partition your disk (for example fdisk command)
2.) format that partition with the linux filesystem of your choice (for example mkfs.ext4 command)
3.) mount that filesystem (for example using fstab or even better something like autofs, as fstab won't allow you to boot your server without the external disk attached and it will only mount it once while booting, not if you later decide to plug in that USB disk). Also make sure to use a unique identifier and not something like sdc1. Use the part-UUID or /dev/disk/by-id/usb-YourDiskID-part1.
4.) in webUI go to Datacenter -> storage -> Add -> Directory" and create a new storage and point it to the mountpoint of that filesystem. Make sure to select Vzdump backup as a content type.
5.) run pvesm set YourStorgeId --is_mountpoint yes so you don't screw up your PVE system disk in case the mount fails, by writing backups to the root filesystem until the server crashes

Something similar can be done using the webUI at "YourNodeName -> Disks -> Directory -> Create: Directory"
 
Last edited:

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!