I have created a backup of my server using the following command:
tar -cvzf ~/clone.tgz --exclude ~/clone.tgz /etc /home /opt /tmp /usr /var
Then I want to restore this backup to another server (same hardware except for the hard drive, which I upgraded to a a SSD). There is already a fresh install of the same ubuntu distribution.
I first did a backup of the following files:
So I run the following command :
tar -xvpzf ~/clone.tgz -C /
Once the files are restored, I restore the host files.
Everything seems fine so I reboot the server, but it won't boot. I don't have access to the server during boot since it is hosted from a remote location. All I can do is start all over again.
What might explain this problem ? Is there a file that I should not have overwritten during the restore ?