Backing up external disk attached to VM as a directory

notKakarot

New Member
Jun 17, 2023
13
1
3
I was trying to create an Ansible automation to recreate my media server VM on proxmox. In order to so, I was attaching the external hard disk, mounted on /mnt/pve/diskname, as a disk to this new vm. But the problem is, I don’t get the partitions that I was using on this hard disk. There wasn’t a loss of important data, but I would really want to have a way to backup this disk data so that I can recreate the VM on a whim.

Currently, all I can think of is running a cron job with rsync to an s3 bucket. But I don’t know if that is the best way to do this.
 
I was trying to create an Ansible automation to recreate my media server VM on proxmox. In order to so, I was attaching the external hard disk, mounted on /mnt/pve/diskname, as a disk to this new vm. But the problem is, I don’t get the partitions that I was using on this hard disk. There wasn’t a loss of important data, but I would really want to have a way to backup this disk data so that I can recreate the VM on a whim.

Currently, all I can think of is running a cron job with rsync to an s3 bucket. But I don’t know if that is the best way to do this.
Why not use the build in backup functionality of PVE to create the backup? How did you exactly use the external disk? Was this passed trough to the VM or did you set it up as storage on PVE and created a virtual disk on that storage, attached to the VM?
 
set it up as storage on PVE and created a virtual disk on that storage, attached to the VM
Yes, this is how im using it.
I dont have another hard disk of that size to store the back up so I’m not configuring a backup that way. i’m more interested in cloud based storage. More like cloud based cold storage.