[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

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 revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
howtos:general_admin:files_filesystem_copying_over_network [2013/02/10 16:29 (UTC)] – [How to copy files \ directories \ filesystems via network.] sycamorexhowtos:general_admin:files_filesystem_copying_over_network [2013/02/10 16:56 (UTC)] – [Copy Files / Directories] sycamorex
Line 11: Line 11:
  
  
-====== Files \ single folder copying ====== +====== Copy Files / Directories ====== 
- If you need copy of standalone files or folders, you can use an scp util:\\ +If you need to copy single files or directories, you can use the ''scp'' command:\\ 
  
-''scp -r -v -p root@192.168.0.1:/etc /From_Old_Server'' \\+<code> 
 +scp -r -v -p root@192.168.0.1:/etc /local_dir 
 +</code>
  
-There+Flag explanation
-  *  -r key do recursive copy all data in "/etc" folder and all its subfolders. +  *  -rrecursive (copy all the content of ''/etc'' including its subdirectories) 
-  *  -p key preserve file attributes, like a creationmodification times. +  *  -ppreserve file attributes (eg. file creation or modification times) 
-  *  -v gives us verbose output. \\+  *  -vverbose output
  
- In there example we copy "/etc" folder from 192.168.0.1 computer ( actually, "Old" server)to folder "/From_Old_Server" in local computer ( "new" server).\\ +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). 
  
-Sadly, but that command ( scp cannot copy whole system disk, contains "/proc""/dev" and even "/lost+found" catalogwho is it in every mounted extX filesystem partition at that places "scp" stuck and stops.\\  +Please note that the ''scp'' command cannot copy the whole file system hierarchy including ''/proc''''/dev'' or ''/lost+found''. Fortunatelythere is a workaround which was [[http://www.linuxquestions.org/questions/slackware-14/copy-whole-filesystem-via-scp-4175449321/#post4887869|provided]] by Patrick Volkerding.
- +
-Thanks to Patrick, "Volkerdi" gives us workaround for that situation:+
  
 ====== Copy whole filesystem ====== ====== Copy whole filesystem ======
 howtos:general_admin:files_filesystem_copying_over_network ()