Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howtos:general_admin:files_filesystem_copying_over_network [2013/02/10 16:56 (UTC)]
sycamorex [Copy Files / Directories]
howtos:general_admin:files_filesystem_copying_over_network [2013/02/10 17:00 (UTC)] (current)
sycamorex [Copy Files / Directories]
Line 23: Line 23:
   *  -v: verbose output   *  -v: verbose output
  
-In the example above we copy the ''/​etc''​ directory located on a remote host (the old server: 192.168.0.1) to the ''/​local_dir''​ on the local host ("​new"​ server). ​+In the example above we copy the ''/​etc''​ directory located on a remote host (the old server: 192.168.0.1) to ''/​local_dir''​ on the local host ("​new"​ server). ​
  
 Please note that the ''​scp''​ command cannot copy the whole file system hierarchy including ''/​proc'',​ ''/​dev''​ or ''/​lost+found''​. Fortunately,​ there is a workaround which was [[http://​www.linuxquestions.org/​questions/​slackware-14/​copy-whole-filesystem-via-scp-4175449321/#​post4887869|provided]] by Patrick Volkerding. Please note that the ''​scp''​ command cannot copy the whole file system hierarchy including ''/​proc'',​ ''/​dev''​ or ''/​lost+found''​. Fortunately,​ there is a workaround which was [[http://​www.linuxquestions.org/​questions/​slackware-14/​copy-whole-filesystem-via-scp-4175449321/#​post4887869|provided]] by Patrick Volkerding.
  
-====== Copy whole filesystem ======+====== Copy whole filesystem ​hierarchy ​======
  
-command ​+The following ​command ​should successfully copy a whole filesystem hierarchy: ​
 <code bash> <code bash>
-ssh root@192.168.0.1 "(cd / ; tar cf - . )" | (mkdir -p /From_Old_Server ​; cd /From_Old_Server ​; umask 000 ; tar xvf -)+ssh root@192.168.0.1 "(cd / ; tar cf - . )" | (mkdir -p /local_dir ​; cd /local_dir ​; umask 000 ; tar xvf -)
 </​code>​ </​code>​
  
-help us transfer full filesystems without stuck and pain from "​old"​ to "​new"​ computer. 
  
  
Line 51: Line 50:
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 <!-- You must remove the tag-word "​template"​ below before saving your new page --> <!-- You must remove the tag-word "​template"​ below before saving your new page -->
-{{tag>​howtos ​template}}+{{tag>​howtos ​copy ssh}}

In Other Languages
QR Code
QR Code howtos:general_admin:files_filesystem_copying_over_network (generated for current page)