LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux dump and restore? (https://www.linuxquestions.org/questions/linux-newbie-8/linux-dump-and-restore-781657/)

hadimotamedi 01-12-2010 04:16 AM

Linux dump and restore?
 
Dear All
Can you please confirm if the following scenario works for making my client and server as identical ?
My local(source) Linux server @192.168.0.2
My remote Linux client @192.168.0.70
On the local system :
#df -m
Filesystem Mounted on
/dev/hda3 /
/dev/hda1 /boot
tmpfs /dev/shm
On the local system , issue the followings to make client and server as identical :
#dump -0uvf - /dev/hda3 | ssh root@192.168.0.70 -c "restore -rf - /"
#dump -0uvf - /dev/hda1 | ssh root@192.168.0.70 -c "restore -rf - /boot"
#dump -0uvf - /dev/shm | ssh root@192.168.0.70 -c "restore -rf - /tmpfs"
Can you please confirm if my understanding is right?
Thank you

Tinkster 01-12-2010 07:13 PM

You'll get a copy of SOMETHING. I wouldn't be too sure about the
state of volatile files if you do this from a live system, and
I definitely wouldn't try to copy /dev/shm


I'd recommend using a live-cd on both machines to execute that
clone, to be on the save side.


Cheers,
Tink


All times are GMT -5. The time now is 10:16 PM.