Answer the question
In order to leave comments, you need to log in
How to restore linux from a backup correctly?
Good day!
I made a simple backup of the Fedora 20 system:
sudo tar -cvpzf /path/to/backup.tar.gz --exclude=/path/to/backup.tar.gz --one-file-system /
sudo tar -xvpzf /path/to/backup.tar.gz -C /media/<mount_point> --numeric-owner
grub2-mkconfig -o /boot/grub2/grub.cfg
Answer the question
In order to leave comments, you need to log in
Looks like the SELinux attributes are off. In this case, you need to create a file in the root and restart the machine:touch /.autorelabel && reboot
If you did this on a live system, then you need to start with the fact that you did the wrong backup.
In your case, you need to at least exclude the /dev /proc /run /sys directories.
To make changes at a minimum, I would mount the root to some other directory, for example, to /mnt, and make a backup of this directory.
And so remove unnecessary directories and look at the logs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question