Answer the question
In order to leave comments, you need to log in
How to restore Linux server from tar archive?
There is a backup copy of the linux server in the tar.gz_mvd format.
I want to deploy it on a Hyperv virtual machine. All that is known about the server is that it is on Debian 7.
To be honest, I have not come across backups and even more so restoring in linux, I do not quite understand the procedure. How to create partitions, how to deploy a backup, bootloader, etc.
Downloading Debian 7.11 image now
Answer the question
In order to leave comments, you need to log in
tar -xvf tar.gz_mvd
See what happens next. I think there will be at least a vhd or avhd file.
Next, create a virtual machine of 1 or 2 generations and try to mount this file.
PS by any chance not dragged property of the Ministry of Internal Affairs?
1. Boot from LiveCD
2. Copy archive to /tmp via ssh/scp
3. Do
fdisk /dev/sda
o\n
n\n
1\n
\n
\n
t\n
83\n
w\n
mkdir / target
mkfs.ext4 /dev/sda1
mount /dev/sda1 /target
tar -zxf /tmp/tar.gz_mvd -C /target (Fixed)
for p in proc sys dev; do mount -o bind /$p /target/$p; done
chroot /target
blkid --output export /dev/sda1 | grep UUID >> /etc/fstab
nano /etc/fstab
4. Move the last line to the beginning (Ctrl+D, Ctrl+U) and replace the old uuid with the new one. Ctrl+O, Ctrl+X).
5. Install and rebuild the bootloader config:
grub-install /dev/sda
update-grub2
6. Exit and restart. Profit.
exit
reboot
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question