LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Recover From Tar Backup (https://www.linuxquestions.org/questions/linux-server-73/recover-from-tar-backup-949457/)

hesisaboury 06-09-2012 11:36 PM

Recover From Tar Backup
 
Hello,
i got a tar backup from my server , now my server have problem and i cant use it anymore , is is possible to restore the tar backup on another system?????

best regards.

jlinkels 06-10-2012 01:03 AM

Do you mean to other hardware or to a different running system?

To other hardware, my preference is to make a minimal bootable installation on that other hardware, and run tar on that installation. Restore into the root directory overwriting that bare installation I just did.

Requirements for that bare installation are: same partition scheme as my backup, and the same place of the files needed for booting. After restoring you need to edit fstab to make sure the uuids of the new hard disk are set correctly. Then you can reboot.

Alternatively you can boot into a live distro, set up the partitions, mount the hard disk, restore you tar into the mounted hard disk, install grub manually onto that new hard disk and check fstab. Basically the same, slightly more complicated.

jlinkels

hesisaboury 06-10-2012 05:36 AM

restoring it on another server does not cause hardware driver confilict????....

thanks a lot jlinkels

jlinkels 06-10-2012 07:07 AM

It is highly unlikely drivers will be a problem. In 99% of the cases you won't need to install a special driver for the network card. VGA usually requires a special driver, but for a server you usually don't use a graphical desktop. And if you do, you can easily boot in text mode and correct the driver.

The only hardware related problem you'll run into is the UUIDs of you new hardware will be different. You must find them with blkid and correct them in the /etc/fstab you just restored.

jlinkels

hesisaboury 06-10-2012 07:36 AM

Thank u so much.....


All times are GMT -5. The time now is 07:29 PM.