Restore single file from a Windows VM

finnzi

New Member
Aug 1, 2023
3
0
1
Hi,

I'm looking into using Proxmox for a small deployment for a SMB.

I didn't find any information in regards to if it was possible to restore a single file from a Promox Backup Server backup of a Windows Server VM?

Bgrds,
Finnur
 
y You must look in the docu of PBS. There u find the hint that this is possible. My opinion: its much awkward than other solutions.
 
  • Like
Reactions: finnzi
I don't believe this is possible on a VM, only a CT

Which is a shame as I am in middle of moving VMs from Hyper-V with Synology ABB VM backup to proxmox.
I just found I had a critical file go missing - it was trivial use ABB Explorer to find the files and download them from the VM backup

I guess i will use proxmox VM backup for whole VM backup (though one can of course mount the image, there is no easy explorer view)
And use synology agent inside the windows VM to do file level backup / restore.

And i agree, figuring out how to use the proxmox-backup-client is an unintuitive PITA - took me 30 minutes plus searches to figure out how to get it to list snapshots (and no the docs do not make it obvious at all)
 
Last edited:
  • Like
Reactions: Chris
In that case you have to map a backup snapshot and attach it to a windows VM (read-only) and extract things manually.
yes I understand that and thought that would be ok, but in a panic about deleting things in a sysvol when replication has apparently been broken for 808 days (how the heck were my two DCs performing ok) that sort of thing is incredibly high friction vs using a browsing tool like this:
1693496319707.png
1693496685886.png
I am not hating on PBS - i think it's great for VM backup and for VM restore, it gets a bit of a pass being much newer software and OSS - but it also has paid variants, in that case i am less forgiving, I would have said before yesterday that mounting the image file myself would be ok - but now having experienced an emergency my perspective has changed.

Also there is no reason why PBS can't have a feature to map the image file and let me browse it... (lol other than work, resources vs higher priorities).

For now i am keeping pbs for vm backup for disaster recovery BUT getting my guest ABB agents running inside the VMs so i have quick file level restores (i.e. not DR but just plain old backup)

I will revisit when PBS do a windows gues agent (its on their aspirational roadmap, but i won't hold my breath - windows agents that support domain controllers etc are not the simplest things...)
 
I don't believe this is possible on a VM, only a CT
Its possible. You can restore a single file of a VM (the filesystem must be supported by PBS) from the PVE webUI. The PBS webUI only allows this for LXCs and non-image host backups.
 
Last edited:
  • Like
Reactions: scyto
Its possible. You can restore a single file of a VM (the filesystem must be supported by PBS) from the PVE webUI. The PBS webUI only allows this for LXCs and non-image host backups.
I am not sure i understand what falls into this category of are VMs and have non-image backups? (and thus would allow me to browse in the UI)
 
I am not sure i understand what falls into this category of are VMs and have non-image backups? (and thus would allow me to browse in the UI)
VMs use always image backups of virtual disks, but you can still browse the files on the filesystems on those block devices and restore single files. See for example here the /etc folder from the backup of my Debian VM running Nextcloud (block level backup of a ext4 formated partition on a zvol):
1693518573765.png

With non-image backups I meant host backups. Host backups done with the proxmox backup client can backup block devices as images as well as files+folders as archives.
 
Last edited:
VMs have always image backups of virtual disks, but you can still browse the files on the filesystems on those block devices and restore single files. See for example here the /etc folder of my Debian VM running Nextcloud:
View attachment 54915

With non-image backups I meant host backups. Host backups done with the proxmox backup client can backup block devices as images as well as files+folders as archives.
Ahh you mean linux VMs!!! (note the OP asked about windows VM's and i was answering that)

That said, I am so happy to be stupid on this one (i have 3 debian docker VMs i need to bring over from hyper-V) i hadn't yet tested debian VMs - it was on my list to do. I have only started or completed the things in blue on my list https://gist.github.com/scyto/76e94832927a89d977ea989da157e9dc

Serves me right for being a windows guy and starting with only windows VMs and linux CTs (yes i know there are no windows CTS).

Thanks, you made me quite happy - doesn't change my conclusion on backup for my windows domain controllers :)

(now if there is a way to get proxmox to do this for image files with NTFS in them then i am all ears...)
 
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!