S
S
sbrdk012020-01-03 13:22:39
linux
sbrdk01, 2020-01-03 13:22:39

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

2 answer(s)
V
Vladimir Korotenko, 2020-01-03
@firedragon

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?

I
Ivan Batalin, 2020-01-04
@Lirein

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 question

Ask a Question

731 491 924 answers to any question