Restore question - networkless file transfer

stevehxyz

New Member
Nov 30, 2024
3
1
3
Hi,
I've only just started playing with proxmox, so excuse what is probably a very basic question!

If I'm backing up VMs and then need to restore a file or directory, I restore the VM to a new VM, disconnect the networking, as maybe it has a static IP or will conflict by being on the normal network.

Then how do I transfer files out of the restored VM?
I can't see any QEMU tools that appear to support this?
Have I missed something somewhere?

Thanks in advance for any pointers.
 
Then how do I transfer files out of the restored VM?
Well, there is no need to restore the complete VM. You ask to get files out of the backup. For my setup I do this - on the PVE, not on the PBS:
  • select the still present VM on the PVE
  • go to "Backup" and select the correct storage in the top right top down menu
  • now I see all backups and I can select one
  • after selecting the specific backup the button "File Restore" at the top row is enabled
  • inside the "File Restore - vm/1234/2014-11-28......." I need to drill down to the specific file, e.g. "drive-scsi0.img.fidx/part/1/etc/passwd"
  • when I select a file the "Download" button at the bottom right gets enabled
This works as long the filesystem inside the selected partition is known by PVE.

:-)
 
  • Like
Reactions: stevehxyz
That's superb, thanks so much for that info.
I'll go and check what file system formats it knows about in the docs.

Out of interest, if I have a month of backups and a file existed for say 24 hours, is there a way fo searching all the backups for that file to find out which ones it existed on?
 
if I have a month of backups and a file existed for say 24 hours, is there a way fo searching all the backups for that file to find out which ones it existed on?
No, not as far as I know. (With heavy scripting there might be a way, but there is no such script yet.)
 
Thanks for your responses.

I'll take a look at what is available in the API, about time I paid something back!
 
  • Like
Reactions: UdoB