How to restore a Linux server from a tar archive?

A backup linux server in tar format.gz_mvd
I want to expand on the virtual reality and Hyperv. All that is known about a server is that it's on Debian 7
To be honest with backup and especially recovery in linux are not faced, do not quite understand the procedure. What to create partitions, how to deploy, backup, bootloader, etc.
Now swinging the way Debian 7.11
April 4th 20 at 00:38
2 answers
April 4th 20 at 00:40
tar-xvf tar.gz_mvd

Then see what happens. I think there will be at least a vhd or avhd
Then create a dev 1 or 2 generations and try to mount the file.

PS is not the case casinoe the property of the Ministry of internal Affairs ?
@bernadine.Ber, the tar view is done with the command "t" and not "l". - caitlyn_Abshire commented on April 4th 20 at 00:46
I would have to start made a "t" and not "x" - see what's out there.
(Fixed on a tip from @Adolf_Legros .) - Cecile_Carro commented on April 4th 20 at 00:43
@Adolf_Legros, Apparently, I mixed it with "--list". - Cecile_Carro commented on April 4th 20 at 00:49
April 4th 20 at 00:42
1. Boot from LiveCD
2. To skopirovat the archive in /tmp via ssh/scp
3. To do this
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 -S /target (fixed)
for p in dev proc sys; 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. Build and rebuild the config loader:
grub-install /dev/sda
update-grub2
6. Exit and restart. Profit.
exit
reboot
fdisk /dev/sda

profit is likely to occur in this place.

tar-zxf /tmp/tar.gz_mvd -O /target

Not -O and -C.

In short, it is not necessary to follow the instructions without understanding what each step should do. - caitlyn_Abshire commented on April 4th 20 at 00:45
@Adolf_Legros, Thank You. Confused with wget, I write from memory. - jared54 commented on April 4th 20 at 00:48

Find more questions by tags LinuxDebianBacking upTar