Restoring a .img on Linux
Discussion
I'm trying to help someone get out of a pickle.
They've got a Linux server (will need to check which version) that they've goosed, and need to restore from a .IMG file. That was a snapshot created by the Hetzner backup solution.
I'm assuming that I need to copy the .IMG file onto the server, but then how do I go about restoring from it? Internet suggests using Gnome.
Any guidance appreciated!
They've got a Linux server (will need to check which version) that they've goosed, and need to restore from a .IMG file. That was a snapshot created by the Hetzner backup solution.
I'm assuming that I need to copy the .IMG file onto the server, but then how do I go about restoring from it? Internet suggests using Gnome.
Any guidance appreciated!
It’s a hosted server, and the backup solution is an add-on to it. There’s no access to the backup server itself, just a web interface to create snapshots which then have to be downloaded by FTP.
I only have remote console access to the server - does that still work for Gnome? I can’t boot it from a USB, for example.
I only have remote console access to the server - does that still work for Gnome? I can’t boot it from a USB, for example.
If it’s just a raw image you should be able to mount it as a normal filesystem using the loop option, specifying the img file rather than a block device as usual. Specific commands are on google.
I had an idea you could restore the image using netcat | dd if the rescue environment has networking. Or scp maybe.
I had an idea you could restore the image using netcat | dd if the rescue environment has networking. Or scp maybe.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff