<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Recursively &#8211; Hostry Help Center</title>
	<atom:link href="https://help.hostry.com/article-tags/recursively/feed/" rel="self" type="application/rss+xml" />
	<link>https://help.hostry.com</link>
	<description>Full information on how to use HOSTRY, provided by 24/7 community based support</description>
	<lastBuildDate>Sat, 04 Sep 2021 09:11:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.12</generator>

<image>
	<url>https://help.hostry.com/wp-content/uploads/cache/2021/01/cropped-apple-icon-180x180-1/836712163.png</url>
	<title>Recursively &#8211; Hostry Help Center</title>
	<link>https://help.hostry.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How To Recursively Copy Remote Files in Linux</title>
		<link>https://help.hostry.com/knowledge-base/how-to-recursively-copy-remote-files-in-linux/</link>
					<comments>https://help.hostry.com/knowledge-base/how-to-recursively-copy-remote-files-in-linux/#comments</comments>
		
		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Sat, 04 Sep 2021 09:11:33 +0000</pubDate>
				<guid isPermaLink="false">https://help.hostry.com/?post_type=ht_kb&#038;p=4216</guid>

					<description><![CDATA[Sometimes, you may encounter copying deleted files in your Linux distribution. Several popular tools are used for this: scp and rsync. This article will describe specifically how each tool works. Working with Scp Scp is a special tool that can be used to securely copy files to and from a [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Sometimes, you may encounter copying deleted files in your Linux distribution. Several popular tools are used for this: <strong><span style="text-decoration: underline;"><em>scp </em></span></strong>and <strong><span style="text-decoration: underline;"><em>rsync</em></span></strong>. This article will describe specifically how each tool works.</p>



<h2 id="working-with-scp" >Working with Scp</h2>



<p>Scp is a special tool that can be used to securely copy files to and from a remote computer using the Secure Shell (SSH) protocol. Scp stands for Secure Copy. The basic syntax for the scp command is as follows:</p>



<pre class="wp-block-code"><code>scp &lt;option> &lt;source> &lt;destination></code></pre>



<p>To copy files recursively, you need to use the -r option. For example, the command below will recursively copy the contents of the my / draft directory to the / backup directory on the remote server. A valid username on the remote server is required.</p>



<pre class="wp-block-code"><code>scp -r / draft redhat8@185.186.244.123:/backup</code></pre>



<p>Here&#8217;s another example of recursively copying the contents of the <strong>/backup/draft</strong> directory from a remote server to a directory on my local machine</p>



<pre class="wp-block-code"><code>scp -r rredhat8@185.186.244.123:/backup/draught /recovered</code></pre>



<h2 id="working-with-rsync" >Working with Rsync</h2>



<p>The rsync tool, which stands for how remote synchronization is used to copy files between local or remote computers, and between computers on a network by comparing modification times and file sizes. It is commonly found on Unix-like operating systems. Rsync is written in C as a single threaded application. The basic syntax for the scp command is as follows:</p>



<pre class="wp-block-code"><code>rsync &lt;options> &lt;source &lt;destination></code></pre>



<p>The ability to copy files recursively is denoted by -r. can synchronize Unix clients with a central Unix server using rsync / ssh and standard Unix accounts. It can be used in a desktop environment, for example, to efficiently synchronize files with a backup on an external hard drive. A scheduling utility such as cron can perform tasks such as automatic rsync encryption-based mirroring between multiple hosts and a central server. For example, the command below will recursively copy the contents of the my <strong>/draft</strong> directory to the <strong>/backup</strong> directory on the remote server. A valid username on the remote server is required.</p>



<pre class="wp-block-code"><code>rsync -rav /draught1.1 redhat8@185.186.244.123:/backup1.1</code></pre>



<p>The following example recursively copies the contents of the <strong>/backup1.1/draught1.1</strong> directory from the remote server to a directory on my local machine</p>



<pre class="wp-block-code"><code>rsync -rav redhat8@185.186.244.123:/backup1.1draught1.1 /recovered2</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://help.hostry.com/knowledge-base/how-to-recursively-copy-remote-files-in-linux/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
	</channel>
</rss>
