<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: How to Use Rsync Command: 16 Examples for Linux File Sync	</title>
	<atom:link href="https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 05 Mar 2026 07:02:01 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/comment-page-2/#comment-2212570</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Mon, 09 Sep 2024 04:25:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=4167#comment-2212570</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/comment-page-2/#comment-2210861&quot;&gt;Alok&lt;/a&gt;.

@Alok,


It seems like you&#039;re encountering the error because &lt;strong&gt;rsync&lt;/strong&gt; cannot create intermediate directories if they don&#039;t already exist. The &lt;strong&gt;rsync&lt;/strong&gt; command will only create the final directory, but if the parent directories (like &lt;strong&gt;/opt/TrilliantNetworks/uhes/conf/Catalina&lt;/strong&gt;) don&#039;t exist, it will fail.

To fix this, you need to create the intermediate directories before running rsync. You can do this by using the &lt;strong&gt;mkdir&lt;/strong&gt; command with the &lt;code&gt;-p&lt;/code&gt; option, which creates the full directory structure:
&lt;pre&gt;
mkdir -p /opt/TrilliantNetworks/uhes/conf/Catalina/localhost
&lt;/pre&gt;
Then run your &lt;strong&gt;rsync&lt;/strong&gt; command again:
&lt;pre&gt;
rsync -avhP ROOT.xml /opt/TrilliantNetworks/uhes/conf/Catalina/localhost/
&lt;/pre&gt;
This should resolve the issue. Let me know if you need more help!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/comment-page-2/#comment-2210861">Alok</a>.</p>
<p>@Alok,</p>
<p>It seems like you&#8217;re encountering the error because <strong>rsync</strong> cannot create intermediate directories if they don&#8217;t already exist. The <strong>rsync</strong> command will only create the final directory, but if the parent directories (like <strong>/opt/TrilliantNetworks/uhes/conf/Catalina</strong>) don&#8217;t exist, it will fail.</p>
<p>To fix this, you need to create the intermediate directories before running rsync. You can do this by using the <strong>mkdir</strong> command with the <code>-p</code> option, which creates the full directory structure:</p>
<pre>
mkdir -p /opt/TrilliantNetworks/uhes/conf/Catalina/localhost
</pre>
<p>Then run your <strong>rsync</strong> command again:</p>
<pre>
rsync -avhP ROOT.xml /opt/TrilliantNetworks/uhes/conf/Catalina/localhost/
</pre>
<p>This should resolve the issue. Let me know if you need more help!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alok		</title>
		<link>https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/comment-page-2/#comment-2210861</link>

		<dc:creator><![CDATA[Alok]]></dc:creator>
		<pubDate>Thu, 05 Sep 2024 06:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=4167#comment-2210861</guid>

					<description><![CDATA[From first example &quot;if the destination is not already existed rsync will create a directory automatically for the destination.&quot;

I am unable to do this. Getting error -
&lt;code&gt;[root@pvvnl-hes-trill-nprod-web01 localhost]# rsync -avhP ROOT.xml /opt/TrilliantNetworks/uhes/conf/Catalina/localhost/
sending incremental file list
rsync: mkdir &quot;/opt/TrilliantNetworks/uhes/conf/Catalina/localhost&quot; failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(663) [Receiver=3.1.3]&lt;/code&gt;]]></description>
			<content:encoded><![CDATA[<p>From first example &#8220;if the destination is not already existed rsync will create a directory automatically for the destination.&#8221;</p>
<p>I am unable to do this. Getting error &#8211;<br />
<code>[root@pvvnl-hes-trill-nprod-web01 localhost]# rsync -avhP ROOT.xml /opt/TrilliantNetworks/uhes/conf/Catalina/localhost/<br />
sending incremental file list<br />
rsync: mkdir "/opt/TrilliantNetworks/uhes/conf/Catalina/localhost" failed: No such file or directory (2)<br />
rsync error: error in file IO (code 11) at main.c(663) [Receiver=3.1.3]</code></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/comment-page-2/#comment-2164992</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Mon, 29 Apr 2024 04:09:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=4167#comment-2164992</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/comment-page-2/#comment-2164637&quot;&gt;Fredrico Calamari&lt;/a&gt;.

@Fredrico,

Yes, it&#039;s true that &lt;strong&gt;RHEL&lt;/strong&gt; now uses &lt;strong&gt;dnf&lt;/strong&gt; instead of &lt;strong&gt;yum&lt;/strong&gt; as the default package manager. But, because we&#039;ve been using &lt;strong&gt;yum&lt;/strong&gt; for a long time in older versions of RHEL, it can be hard to switch to dnf. However, it&#039;s important to know that &lt;strong&gt;yum&lt;/strong&gt; has been made an alias to &lt;strong&gt;dnf&lt;/strong&gt;, so it still works the same way for those who are used to it.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/comment-page-2/#comment-2164637">Fredrico Calamari</a>.</p>
<p>@Fredrico,</p>
<p>Yes, it&#8217;s true that <strong>RHEL</strong> now uses <strong>dnf</strong> instead of <strong>yum</strong> as the default package manager. But, because we&#8217;ve been using <strong>yum</strong> for a long time in older versions of RHEL, it can be hard to switch to dnf. However, it&#8217;s important to know that <strong>yum</strong> has been made an alias to <strong>dnf</strong>, so it still works the same way for those who are used to it.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Fredrico Calamari		</title>
		<link>https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/comment-page-2/#comment-2164637</link>

		<dc:creator><![CDATA[Fredrico Calamari]]></dc:creator>
		<pubDate>Sun, 28 Apr 2024 04:30:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=4167#comment-2164637</guid>

					<description><![CDATA[RHEL no longer uses the yum command and now uses dnf by default. Although you can still run yum, it&#039;s now an alias to dnf. Additionally, according to Red Hat calling yum is deprecated and no longer recommended.]]></description>
			<content:encoded><![CDATA[<p>RHEL no longer uses the yum command and now uses dnf by default. Although you can still run yum, it&#8217;s now an alias to dnf. Additionally, according to Red Hat calling yum is deprecated and no longer recommended.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ken		</title>
		<link>https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/comment-page-2/#comment-2106589</link>

		<dc:creator><![CDATA[Ken]]></dc:creator>
		<pubDate>Fri, 24 Nov 2023 07:18:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=4167#comment-2106589</guid>

					<description><![CDATA[Why not alphabetically ordered [OPTION...]?

For example:
&lt;pre&gt;
rsync -ahPzv SRC... [DEST]
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Why not alphabetically ordered [OPTION&#8230;]?</p>
<p>For example:</p>
<pre>
rsync -ahPzv SRC... [DEST]
</pre>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
