Differences

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

Link to this comparison view

copy_a_directory_recursively_using_scp [2016/06/09 13:46]
Joel Dare
copy_a_directory_recursively_using_scp [2020/06/01 22:53]
Line 1: Line 1:
-====== Copy a Directory Recursively using SCP ====== 
  
-I often need to quickly copy a directory from one Linux machine to another. ​ An easy command to accomplish the task is the SCP (Secure Copy) command. ​ Here's the general format of a recursive copy. 
- 
-  scp -r [/​local/​path/​] [user@host]:​[/​remote/​path] 
- 
-The -r switch causes scp to copy recursively. ​ It copies all files and directories under the one specified. 
- 
-You can use the * wildcard as your local path to copy the current directory and everything below it. 
- 
-===== rsync Alternative ===== 
- 
-You can also use the rsync command to copy files in a similar manner. ​ rsync has a few more options and the advantage that it only copies changed files. 
- 
-  rsync -a [/​local/​path/​] [user@host]:​[remote/​path/​] 
- 
-<​html>​ 
-<!-- 
-<​center>​ 
-<iframe src="​https://​docs.google.com/​forms/​d/​1rMXcjIldfE3SrCd5_C8qQyIfk5xUnFVDdvMPe2hhdT8/​viewform?​embedded=true"​ width="​300"​ height="​600"​ frameborder="​0"​ marginheight="​0"​ marginwidth="​0">​Loading...</​iframe>​ 
-</​center>​ 
---> 
-</​html>​ 
comments powered by Disqus
copy_a_directory_recursively_using_scp.txt · Last modified: 2020/06/01 22:53 (external edit)