LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   using dd to copy a file system to another server (https://www.linuxquestions.org/questions/linux-general-1/using-dd-to-copy-a-file-system-to-another-server-82828/)

bobbyr 08-17-2003 10:45 AM

using dd to copy a file system to another server
 
I need top copy all personal user directories from within /home to another server's /home. Wouldn't dd be faster? I am not sure what the synctax would be?

dd if=/home of=remoret_server:/home

not sure???

raylpc 08-17-2003 11:08 AM

Don't know how to use dd.
one alternative is tar
tar -cf - <from-directory> | (cd <to-directory>; tar -xvf - .)
all attributes and symbolic links are preserved.

MasterC 08-17-2003 12:19 PM

Or if you are versed enough, you could setup NFS and just do a cp:
cp -a /home /mnt/server/home
Assuming you've mounted the server's home at /mnt/server ;)

Cool


All times are GMT -5. The time now is 09:11 AM.