I use a Samsung Portable SSD T7 for offline backups of containers and VMs. It is formatted with the exFAT filesystem, making it readable by multiple operating systems.
This guide requires basic Linux knowledge and is intended for occasional backups, as there are better solutions than backing up to portable SSDs.
Mounting the portable USB drive in Debian
- Open the shell via the Proxmox webinterface or login via SSH
- List the current attached SCSI, SATA, or USB drives:
ls -l /dev/ | grep sd
- If the command output is not empty, it will list the connected drives and partitions:
sda
sda1
sda2
sda3 - Attach the portable SSD to the computer on which Proxmox is running
- Check if the portable SSD is correctly detected by Proxmox:
lsusb
- The portable SSD should be visible in the results:
Bus 002 Device 002: ID 04e8:61fb Samsung Electronics Co., Ltd PSSD T7 Shield
- Create a local directory which will be used to mount the portable SSD:
mkdir -p /root/ssd/
- List the current attached disks again, to verify which disk has the partition we want to mount into the local folder:
ls -l /dev/ | grep sd
- If the command output is not empty, it will list the connected drives and partitions:
sda
sda1
sda2
sda3
sdb < Samsung Portable SSD
sdb1 < exFAT partition - Mount the exfat partition
sdb1
into the local folder/root/ssd/
:mount /dev/sdb1 /root/ssd/
- Create a folder called
proxmox_backup
:mkdir -p /root/ssd/proxmox_backup/
Add the portable USB drive as a backup target in Proxmox
- In the webinterface of Proxmox, click on Datacenter > Storage > Add > Directory
- Enter the following information:
ID: SamsungT7
Path: /root/ssd/proxmox_backup/
Content: select Disk image and VZDump backup file - Click Add
- A new entry should be added with the ID you entered
Create a backup of a container or virtual machine
I prefer to back up containers and virtual machines that are shut down to ensure no changes are made during the backup process.
Repeat the steps for every container or virtual machine you want to back-up.
- Select the container or virtual machine you want to back-up
- Shutdown the container or virtual machine
- Click Backup in the vertical toolbar
- Click Backup now
- Make sure the settings are:
Storage: SamsungT7
Mode: Stop - Click Backup
- When the backup is successfull, start the container or virtual machine
Remove the portable USB drive as a backup target in Proxmox
Ensure all backups are finished before proceeding with these steps:
- In the webinterface of Proxmox, click on Datacenter > Storage > SamsungT7 > Remove
- Confirm with Yes
Unmount the portable USB drive in Debian
- Open the shell via the Proxmox webinterface or login via SSH
- Go to the root of the filesystem:
cd /
- Unmount the portable USB drive
umount /root/ssd/
- Check if the partition
sdb1
is really unmounted – the result should be empty:df -h | grep sdb
- Remove the portable SSD from the computer in which Proxmox is running.
- Store the portable SSD somewhere safe