{"id":37001,"date":"2025-03-31T05:32:13","date_gmt":"2025-03-31T05:32:13","guid":{"rendered":"https:\/\/green.cloud\/docs\/?post_type=docs&#038;p=37001"},"modified":"2026-01-19T00:45:51","modified_gmt":"2026-01-19T00:45:51","slug":"how-to-transfer-data-via-private-network-using-rsync-and-scp","status":"publish","type":"docs","link":"https:\/\/green.cloud\/docs\/how-to-transfer-data-via-private-network-using-rsync-and-scp\/","title":{"rendered":"How to Transfer Data via Private Network Using Rsync and SCP"},"content":{"rendered":"<h1>How to Transfer Data via Private Network Using Rsync and SCP<\/h1>\n<p>Transferring data securely and efficiently between VPS instances within a VirtFusion private network is essential for maintaining data integrity, privacy, and improving performance. Before you proceed, ensure that you have enabled and properly configured your private network according to <a href=\"https:\/\/green.cloud\/docs\/how-to-set-up-a-private-network-at-the-same-location-in-virtfusion\/\">this guide<\/a>.<\/p>\n<p>In this example, we will use the following IP addresses:<\/p>\n<ul>\n<li><strong>Server A:<\/strong> <code>10.20.1.1\/16<\/code><\/li>\n<li><strong>Server B:<\/strong> <code>10.20.1.2\/16<\/code><\/li>\n<\/ul>\n<p>Ensure your servers can ping each other over the private network before proceeding. Typically, you will SSH into your servers using their public IP addresses first, then use the private network for data transfer.<\/p>\n<h2>Method 1: Using Rsync<\/h2>\n<p>Rsync provides fast, secure, and incremental data transfers between servers.<\/p>\n<h3>Step-by-Step Guide<\/h3>\n<ol>\n<li><strong>Install Rsync<\/strong> (if not already installed)<\/li>\n<\/ol>\n<ul>\n<li>On AlmaLinux\/CentOS:<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">yum install rsync -y\r\n<\/code><\/pre>\n<ul>\n<li>On Ubuntu\/Debian:<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">apt install rsync -y\r\n<\/code><\/pre>\n<ol start=\"2\">\n<li><strong>Transfer Data<\/strong><\/li>\n<\/ol>\n<p>Run the following command on <strong>Server A<\/strong> to transfer data to <strong>Server B<\/strong>:<\/p>\n<pre><code class=\"language-bash\">rsync -avz \/path\/to\/source\/ root@10.20.1.2:\/path\/to\/destination\/\r\n<\/code><\/pre>\n<p>Replace:<\/p>\n<ul>\n<li><code>\/path\/to\/source\/<\/code> with your actual source directory or file path.<\/li>\n<li><code>\/path\/to\/destination\/<\/code> with your desired destination path on Server B.<\/li>\n<\/ul>\n<p>Example:<\/p>\n<pre><code class=\"language-bash\">rsync -avz \/home\/user\/data\/ root@10.20.1.2:\/home\/user\/data\/\r\n<\/code><\/pre>\n<h2>Method 2: Using SCP<\/h2>\n<p>SCP securely transfers files between servers using the SSH protocol.<\/p>\n<h3>Step-by-Step Guide<\/h3>\n<ol>\n<li><strong>Ensure SCP (OpenSSH Client) is installed<\/strong><\/li>\n<\/ol>\n<ul>\n<li>On AlmaLinux\/CentOS:<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">yum install openssh-clients -y\r\n<\/code><\/pre>\n<ul>\n<li>On Ubuntu\/Debian:<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">apt install openssh-client -y\r\n<\/code><\/pre>\n<ol start=\"2\">\n<li><strong>Transfer Data<\/strong><\/li>\n<\/ol>\n<p>On <strong>Server A<\/strong>, run:<\/p>\n<pre><code class=\"language-bash\">scp -r \/path\/to\/source\/ root@10.20.1.2:\/path\/to\/destination\/\r\n<\/code><\/pre>\n<p>Example:<\/p>\n<pre><code class=\"language-bash\">scp -r \/home\/user\/data\/ root@10.20.1.2:\/home\/user\/data\/\r\n<\/code><\/pre>\n<h2>Verifying Data Transfer<\/h2>\n<p>Confirm the successful transfer by logging into <strong>Server B<\/strong> (via public IP) and checking the transferred data:<\/p>\n<pre><code class=\"language-bash\">ssh root@PUBLIC_IP_SERVER_B\r\nls -l \/home\/user\/data\/\r\n<\/code><\/pre>\n<p>You should see your files and directories listed, confirming the transfer was successful.<\/p>\n<h2>Conclusion<\/h2>\n<p>By following this guide, you can securely and efficiently transfer data over your VirtFusion private network using Rsync or SCP. Utilizing these methods helps maintain secure internal communications, reduce transfer times, and improve overall network efficiency.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Transfer Data via Private Network Using Rsync and SCP Transferring data securely and efficiently between VPS instances within a VirtFusion private network is essential for maintaining data integrity, privacy, and improving performance. Before you proceed, ensure that you have enabled and properly configured your private network according to this guide. In this example, [&hellip;]<\/p>\n","protected":false},"author":21,"featured_media":0,"parent":34453,"menu_order":698,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-37001","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Transfer Data via Private Network Using Rsync and SCP - GreenCloud Documentation<\/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:\/\/green.cloud\/docs\/how-to-transfer-data-via-private-network-using-rsync-and-scp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Transfer Data via Private Network Using Rsync and SCP - GreenCloud Documentation\" \/>\n<meta property=\"og:description\" content=\"How to Transfer Data via Private Network Using Rsync and SCP Transferring data securely and efficiently between VPS instances within a VirtFusion private network is essential for maintaining data integrity, privacy, and improving performance. Before you proceed, ensure that you have enabled and properly configured your private network according to this guide. In this example, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/green.cloud\/docs\/how-to-transfer-data-via-private-network-using-rsync-and-scp\/\" \/>\n<meta property=\"og:site_name\" content=\"GreenCloud Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-19T00:45:51+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-transfer-data-via-private-network-using-rsync-and-scp\\\/\",\"url\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-transfer-data-via-private-network-using-rsync-and-scp\\\/\",\"name\":\"How to Transfer Data via Private Network Using Rsync and SCP - GreenCloud Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/#website\"},\"datePublished\":\"2025-03-31T05:32:13+00:00\",\"dateModified\":\"2026-01-19T00:45:51+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-transfer-data-via-private-network-using-rsync-and-scp\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-transfer-data-via-private-network-using-rsync-and-scp\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-transfer-data-via-private-network-using-rsync-and-scp\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/green.cloud\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GreenCloud Documents\",\"item\":\"https:\\\/\\\/green.cloud\\\/docs\\\/docs\\\/greencloud-documents\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Virtfusion\",\"item\":\"https:\\\/\\\/green.cloud\\\/docs\\\/greencloud-documents\\\/virtfusion\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How to Transfer Data via Private Network Using Rsync and SCP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/#website\",\"url\":\"https:\\\/\\\/green.cloud\\\/docs\\\/\",\"name\":\"GreenCloud Documentation\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/green.cloud\\\/docs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Transfer Data via Private Network Using Rsync and SCP - GreenCloud Documentation","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:\/\/green.cloud\/docs\/how-to-transfer-data-via-private-network-using-rsync-and-scp\/","og_locale":"en_US","og_type":"article","og_title":"How to Transfer Data via Private Network Using Rsync and SCP - GreenCloud Documentation","og_description":"How to Transfer Data via Private Network Using Rsync and SCP Transferring data securely and efficiently between VPS instances within a VirtFusion private network is essential for maintaining data integrity, privacy, and improving performance. Before you proceed, ensure that you have enabled and properly configured your private network according to this guide. In this example, [&hellip;]","og_url":"https:\/\/green.cloud\/docs\/how-to-transfer-data-via-private-network-using-rsync-and-scp\/","og_site_name":"GreenCloud Documentation","article_modified_time":"2026-01-19T00:45:51+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/green.cloud\/docs\/how-to-transfer-data-via-private-network-using-rsync-and-scp\/","url":"https:\/\/green.cloud\/docs\/how-to-transfer-data-via-private-network-using-rsync-and-scp\/","name":"How to Transfer Data via Private Network Using Rsync and SCP - GreenCloud Documentation","isPartOf":{"@id":"https:\/\/green.cloud\/docs\/#website"},"datePublished":"2025-03-31T05:32:13+00:00","dateModified":"2026-01-19T00:45:51+00:00","breadcrumb":{"@id":"https:\/\/green.cloud\/docs\/how-to-transfer-data-via-private-network-using-rsync-and-scp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/green.cloud\/docs\/how-to-transfer-data-via-private-network-using-rsync-and-scp\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/green.cloud\/docs\/how-to-transfer-data-via-private-network-using-rsync-and-scp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/green.cloud\/docs\/"},{"@type":"ListItem","position":2,"name":"GreenCloud Documents","item":"https:\/\/green.cloud\/docs\/docs\/greencloud-documents\/"},{"@type":"ListItem","position":3,"name":"Virtfusion","item":"https:\/\/green.cloud\/docs\/greencloud-documents\/virtfusion\/"},{"@type":"ListItem","position":4,"name":"How to Transfer Data via Private Network Using Rsync and SCP"}]},{"@type":"WebSite","@id":"https:\/\/green.cloud\/docs\/#website","url":"https:\/\/green.cloud\/docs\/","name":"GreenCloud Documentation","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/green.cloud\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/37001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/comments?post=37001"}],"version-history":[{"count":1,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/37001\/revisions"}],"predecessor-version":[{"id":37003,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/37001\/revisions\/37003"}],"up":[{"embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/34453"}],"wp:attachment":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/media?parent=37001"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/doc_tag?post=37001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}