{"id":260,"date":"2018-08-25T20:21:57","date_gmt":"2018-08-25T20:21:57","guid":{"rendered":"http:\/\/www.projectimmerse.com\/?p=260"},"modified":"2026-08-01T02:14:56","modified_gmt":"2026-08-01T02:14:56","slug":"scp-secure-copy","status":"publish","type":"post","link":"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/","title":{"rendered":"SCP &#8211; Secure Copy"},"content":{"rendered":"<p>We all know about FTP (file transfer protocol), FileZilla, Cyberduck and friends &#8211; utility tools that allow developers to transfer files between clients and servers. I&#8217;ve used FTP over a million times in my development career. From backing up files, migrations, or new fresh installations of some framework or CMS system &#8211; like WordPress.<\/p>\n<p>Well there will be some situations where you you might need the help of Unix&#8217;s scp &#8211; or secure copy. This is a command you have to run so those of you that&#8217;s never fired up the terminal will need to get your hands dirty with it. Play around and run some commands and make some mistakes &#8211; well in a sandboxed environment, don&#8217;t want to totally delete your entire life&#8217; work. <\/p>\n<p><!--more--><\/p>\n<p>One of the benefits that I like about scp is that it is secure. Yeah you extreme cyber security folks will have counters for this but nothing is 100% secure, but scp does a pretty good job of it. Another benefit is speed &#8211; when you fire up this command the processing speed between client and server is much faster than that of FTP. <\/p>\n<p>More often I run into situations where I need to transfer files from client to server &#8211; a good example would be transferring wordpress files, a fresh install. <\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\r\n\/\/ -r flag means recursively scan directories and subdirectories \r\n\/\/ and transfer those too\r\nscp -r wordpress\/* username@host.com:\/home\/wordpress\/site.com\r\n\r\n<\/pre>\n<p>Once that&#8217;s run, you&#8217;ll see the program do its work. <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.projectimmerse.com\/wp-content\/uploads\/2018\/08\/secure-copy-transfer-1024x391.png\" alt=\"Secure Copy Transfer\" width=\"660\" height=\"252\" class=\"aligncenter size-large wp-image-264\" srcset=\"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/08\/secure-copy-transfer-1024x391.png 1024w, https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/08\/secure-copy-transfer-300x115.png 300w, https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/08\/secure-copy-transfer-768x293.png 768w, https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/08\/secure-copy-transfer-80x31.png 80w, https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/08\/secure-copy-transfer.png 2038w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/p>\n<p>Let it finish processing, it&#8217;ll take a while depending on how large the directory (you&#8217;re transferring to the server from your local drive) is. <\/p>\n<p>Once that&#8217;s complete you can simply verify by logging into your server and checking that the files are there. Something very important to note is the &#8220;-r&#8221; flag, don&#8217;t forget this when running the scp command. The &#8220;-r&#8221; flag just means you are wanting to grab EVERYTHING and transfer EVERYTHING from one server to another. If you don&#8217;t run the &#8220;-r&#8221; flag, only top level directories and files are transferred. You will be wondering why some files are missing and why you&#8217;re program or software isn&#8217;t running properly. So archive this in your brain somewhere. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>We all know about FTP (file transfer protocol), FileZilla, Cyberduck and friends &#8211; utility tools that allow developers to transfer files between clients and servers. I&#8217;ve used FTP over a million times in my development career. From backing up files, migrations, or new fresh installations of some framework or CMS system &#8211; like WordPress. Well &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;SCP &#8211; Secure Copy&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1162,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55],"tags":[],"class_list":["post-260","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developer-tips-productivity"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SCP - Secure Copy - Project Immerse<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SCP - Secure Copy - Project Immerse\" \/>\n<meta property=\"og:description\" content=\"We all know about FTP (file transfer protocol), FileZilla, Cyberduck and friends &#8211; utility tools that allow developers to transfer files between clients and servers. I&#8217;ve used FTP over a million times in my development career. From backing up files, migrations, or new fresh installations of some framework or CMS system &#8211; like WordPress. Well &hellip; Continue reading &quot;SCP &#8211; Secure Copy&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/\" \/>\n<meta property=\"og:site_name\" content=\"Project Immerse\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-25T20:21:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-01T02:14:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/08\/scp-secure-copy-command-unix.png\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"750\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Alex Mercer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alex Mercer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/scp-secure-copy\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/scp-secure-copy\\\/\"},\"author\":{\"name\":\"Alex Mercer\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#\\\/schema\\\/person\\\/c53f2864be524ee6fa08a7e4800dd1e5\"},\"headline\":\"SCP &#8211; Secure Copy\",\"datePublished\":\"2018-08-25T20:21:57+00:00\",\"dateModified\":\"2026-08-01T02:14:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/scp-secure-copy\\\/\"},\"wordCount\":387,\"image\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/scp-secure-copy\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/scp-secure-copy-command-unix.png\",\"articleSection\":[\"Developer Tips &amp; Productivity\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/scp-secure-copy\\\/\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/scp-secure-copy\\\/\",\"name\":\"SCP - Secure Copy - Project Immerse\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/scp-secure-copy\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/scp-secure-copy\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/scp-secure-copy-command-unix.png\",\"datePublished\":\"2018-08-25T20:21:57+00:00\",\"dateModified\":\"2026-08-01T02:14:56+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#\\\/schema\\\/person\\\/c53f2864be524ee6fa08a7e4800dd1e5\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/scp-secure-copy\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/scp-secure-copy\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/scp-secure-copy\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/scp-secure-copy-command-unix.png\",\"contentUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/scp-secure-copy-command-unix.png\",\"width\":750,\"height\":750,\"caption\":\"SCP \u2013 Secure Copy Command (Unix)\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/scp-secure-copy\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SCP &#8211; Secure Copy\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/\",\"name\":\"Project Immerse\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#\\\/schema\\\/person\\\/c53f2864be524ee6fa08a7e4800dd1e5\",\"name\":\"Alex Mercer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/alex-mercer-author-150x150.png\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/alex-mercer-author-150x150.png\",\"contentUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/alex-mercer-author-150x150.png\",\"caption\":\"Alex Mercer\"},\"description\":\"Alex Mercer is a writer and contributor at Project Immerse, covering web design, WordPress, web development, SEO, digital strategy, emerging technology, and the evolving world of the web. His work focuses on practical ideas, useful tools, and approachable guidance that help creators, developers, and business owners build better digital experiences. Alex writes with a hands-on, curiosity-driven approach, exploring both established web practices and new technologies shaping how websites are designed, built, and discovered.\",\"sameAs\":[\"https:\\\/\\\/www.projectimmerse.com\"],\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/author\\\/projectimmerse\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SCP - Secure Copy - Project Immerse","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/","og_locale":"en_US","og_type":"article","og_title":"SCP - Secure Copy - Project Immerse","og_description":"We all know about FTP (file transfer protocol), FileZilla, Cyberduck and friends &#8211; utility tools that allow developers to transfer files between clients and servers. I&#8217;ve used FTP over a million times in my development career. From backing up files, migrations, or new fresh installations of some framework or CMS system &#8211; like WordPress. Well &hellip; Continue reading \"SCP &#8211; Secure Copy\"","og_url":"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/","og_site_name":"Project Immerse","article_published_time":"2018-08-25T20:21:57+00:00","article_modified_time":"2026-08-01T02:14:56+00:00","og_image":[{"width":750,"height":750,"url":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/08\/scp-secure-copy-command-unix.png","type":"image\/png"}],"author":"Alex Mercer","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alex Mercer","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/#article","isPartOf":{"@id":"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/"},"author":{"name":"Alex Mercer","@id":"https:\/\/www.projectimmerse.com\/blog\/#\/schema\/person\/c53f2864be524ee6fa08a7e4800dd1e5"},"headline":"SCP &#8211; Secure Copy","datePublished":"2018-08-25T20:21:57+00:00","dateModified":"2026-08-01T02:14:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/"},"wordCount":387,"image":{"@id":"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/#primaryimage"},"thumbnailUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/08\/scp-secure-copy-command-unix.png","articleSection":["Developer Tips &amp; Productivity"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/","url":"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/","name":"SCP - Secure Copy - Project Immerse","isPartOf":{"@id":"https:\/\/www.projectimmerse.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/#primaryimage"},"image":{"@id":"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/#primaryimage"},"thumbnailUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/08\/scp-secure-copy-command-unix.png","datePublished":"2018-08-25T20:21:57+00:00","dateModified":"2026-08-01T02:14:56+00:00","author":{"@id":"https:\/\/www.projectimmerse.com\/blog\/#\/schema\/person\/c53f2864be524ee6fa08a7e4800dd1e5"},"breadcrumb":{"@id":"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/#primaryimage","url":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/08\/scp-secure-copy-command-unix.png","contentUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/08\/scp-secure-copy-command-unix.png","width":750,"height":750,"caption":"SCP \u2013 Secure Copy Command (Unix)"},{"@type":"BreadcrumbList","@id":"https:\/\/www.projectimmerse.com\/blog\/scp-secure-copy\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.projectimmerse.com\/blog\/"},{"@type":"ListItem","position":2,"name":"SCP &#8211; Secure Copy"}]},{"@type":"WebSite","@id":"https:\/\/www.projectimmerse.com\/blog\/#website","url":"https:\/\/www.projectimmerse.com\/blog\/","name":"Project Immerse","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.projectimmerse.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.projectimmerse.com\/blog\/#\/schema\/person\/c53f2864be524ee6fa08a7e4800dd1e5","name":"Alex Mercer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2026\/09\/alex-mercer-author-150x150.png","url":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2026\/09\/alex-mercer-author-150x150.png","contentUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2026\/09\/alex-mercer-author-150x150.png","caption":"Alex Mercer"},"description":"Alex Mercer is a writer and contributor at Project Immerse, covering web design, WordPress, web development, SEO, digital strategy, emerging technology, and the evolving world of the web. His work focuses on practical ideas, useful tools, and approachable guidance that help creators, developers, and business owners build better digital experiences. Alex writes with a hands-on, curiosity-driven approach, exploring both established web practices and new technologies shaping how websites are designed, built, and discovered.","sameAs":["https:\/\/www.projectimmerse.com"],"url":"https:\/\/www.projectimmerse.com\/blog\/author\/projectimmerse\/"}]}},"_links":{"self":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts\/260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/comments?post=260"}],"version-history":[{"count":4,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts\/260\/revisions"}],"predecessor-version":[{"id":454,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts\/260\/revisions\/454"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/media\/1162"}],"wp:attachment":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/media?parent=260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/categories?post=260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/tags?post=260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}