{"id":8419,"date":"2024-04-29T08:18:01","date_gmt":"2024-04-29T08:18:01","guid":{"rendered":"https:\/\/www.infinitivehost.com\/knowledge-base\/?p=8419"},"modified":"2024-04-29T08:18:03","modified_gmt":"2024-04-29T08:18:03","slug":"easy-remote-folder-copy-with-scp-step-by-step-guide","status":"publish","type":"post","link":"https:\/\/www.infinitivehost.com\/knowledge-base\/easy-remote-folder-copy-with-scp-step-by-step-guide\/","title":{"rendered":"Easy Remote Folder Copy with SCP: Step-by-Step Guide"},"content":{"rendered":"<div class='epvc-post-count'><span class='epvc-eye'><\/span>  <span class=\"epvc-count\"> 1,362<\/span><span class='epvc-label'> Views<\/span><\/div>\n<p>To copy a folder from a remote server to your local machine using scp, you can use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-red-color has-text-color has-link-color wp-elements-2644e11c061d318ec208e63a7f957dd8\"><code><code>scp -r user@remote_host:\/remote\/directory\/path \/local\/directory\/path<\/code><\/code><\/pre>\n\n\n\n<p>Replace <code>user<\/code> with your username on the remote server, <code>remote_host<\/code> with the IP address or hostname of the remote server, <code>\/remote\/directory\/path<\/code> with the path to the folder you want to copy on the remote server, and <code>\/local\/directory\/path<\/code> with the path to the destination folder on your local machine.<\/p>\n\n\n\n<p>Make sure to include the <code>-r<\/code> flag to recursively copy the entire folder and its contents.<\/p>\n\n\n\n<p>For example, if you want to copy a folder named &#8220;example_folder&#8221; from the remote server to your current directory on your local machine, and your username on the remote server is &#8220;username&#8221; and the IP address is &#8220;192.168.1.100&#8221;, you would use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code has-vivid-red-color has-text-color has-link-color wp-elements-69ae9639138350519710aa6c76a917ad\"><code><code>scp -r username@192.168.1.100:\/path\/to\/example_folder .<\/code><\/code><\/pre>\n\n\n\n<p>This would copy the &#8220;example_folder&#8221; and all its contents to your current directory on the local machine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1,362 Views To copy a folder from a remote server to your local machine using scp, you can use the following command: Replace user with your username on the remote server, remote_host with the IP address or hostname of the remote server, \/remote\/directory\/path with the path to the folder you want to copy on the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8419","post","type-post","status-publish","format-standard","hentry","category-web-hosting"],"_links":{"self":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=8419"}],"version-history":[{"count":2,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8419\/revisions"}],"predecessor-version":[{"id":8421,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8419\/revisions\/8421"}],"wp:attachment":[{"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=8419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=8419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.infinitivehost.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=8419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}