<?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 Sync Files/Directories Using Rsync with Non-standard SSH Port	</title>
	<atom:link href="https://www.tecmint.com/sync-files-using-rsync-with-non-standard-ssh-port/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/sync-files-using-rsync-with-non-standard-ssh-port/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 13 Jul 2023 18:29:37 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: KRay		</title>
		<link>https://www.tecmint.com/sync-files-using-rsync-with-non-standard-ssh-port/comment-page-1/#comment-797656</link>

		<dc:creator><![CDATA[KRay]]></dc:creator>
		<pubDate>Tue, 05 Jul 2016 22:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=17611#comment-797656</guid>

					<description><![CDATA[If you get this article then you HAVE to take it to the next level. And yes -- there are various &#039;better&#039; ways to change/specify the ssh port and the connection ABSOLUTELY should be key&#039;d, but I digress...

The next level is doing a differential HARD-linked backup set.
ie: I&#039;ve already backed up the remote directory to local backup &quot;1&quot;.
&lt;pre&gt;
--link-dest=/my_backups/1
&lt;/pre&gt;
Put it all together (well, as I do it) for the second and onward backup:
&lt;pre&gt;
# rsync -avx --human-readable --progress --stats --delete --ignore-errors --force --exclude-from=${EXCLUDE_FILE} \
 --link-dest=/my_backups/1 -e &#039;ssh -p ${MY_PORT} &#039; ${USER}@${REMOTE_HOST}:/remote_directory/   /my_backups/2&lt;/pre&gt;
What this does only transfer new (or changed) files via rsync, otherwise we already have the file in the previous backup set, HARD-link to the file.
This takes up no more space (except using another inode pointing to the data) -- and the data exists until the last linked file is deleted.

I have servers rsync&#039;ing multiple times per hour allowing for snapshots, if you will, going back many many months with minimal overhead for ALL those backups (hundreds) -- only new data. Wipe the oldest as space requires...]]></description>
			<content:encoded><![CDATA[<p>If you get this article then you HAVE to take it to the next level. And yes &#8212; there are various &#8216;better&#8217; ways to change/specify the ssh port and the connection ABSOLUTELY should be key&#8217;d, but I digress&#8230;</p>
<p>The next level is doing a differential HARD-linked backup set.<br />
ie: I&#8217;ve already backed up the remote directory to local backup &#8220;1&#8221;.</p>
<pre>
--link-dest=/my_backups/1
</pre>
<p>Put it all together (well, as I do it) for the second and onward backup:</p>
<pre>
# rsync -avx --human-readable --progress --stats --delete --ignore-errors --force --exclude-from=${EXCLUDE_FILE} \
 --link-dest=/my_backups/1 -e 'ssh -p ${MY_PORT} ' ${USER}@${REMOTE_HOST}:/remote_directory/   /my_backups/2</pre>
<p>What this does only transfer new (or changed) files via rsync, otherwise we already have the file in the previous backup set, HARD-link to the file.<br />
This takes up no more space (except using another inode pointing to the data) &#8212; and the data exists until the last linked file is deleted.</p>
<p>I have servers rsync&#8217;ing multiple times per hour allowing for snapshots, if you will, going back many many months with minimal overhead for ALL those backups (hundreds) &#8212; only new data. Wipe the oldest as space requires&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: GottZ		</title>
		<link>https://www.tecmint.com/sync-files-using-rsync-with-non-standard-ssh-port/comment-page-1/#comment-797519</link>

		<dc:creator><![CDATA[GottZ]]></dc:creator>
		<pubDate>Tue, 05 Jul 2016 07:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=17611#comment-797519</guid>

					<description><![CDATA[lol. Security reasons.. did you ever hear about certificates?
at least explain your concerns.
in my case I noticed a Rapid decrease in attempts to login to my Servers by just removing root from password as well as key auth.
unless someone knows your account name nobody could Start bruteforcing your password. though its better to just rely to passphrased ssh Keys only.]]></description>
			<content:encoded><![CDATA[<p>lol. Security reasons.. did you ever hear about certificates?<br />
at least explain your concerns.<br />
in my case I noticed a Rapid decrease in attempts to login to my Servers by just removing root from password as well as key auth.<br />
unless someone knows your account name nobody could Start bruteforcing your password. though its better to just rely to passphrased ssh Keys only.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: BasketCase		</title>
		<link>https://www.tecmint.com/sync-files-using-rsync-with-non-standard-ssh-port/comment-page-1/#comment-723361</link>

		<dc:creator><![CDATA[BasketCase]]></dc:creator>
		<pubDate>Sat, 12 Dec 2015 17:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=17611#comment-723361</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/sync-files-using-rsync-with-non-standard-ssh-port/comment-page-1/#comment-722870&quot;&gt;Tomas&lt;/a&gt;.

And you should put your non-standard ssh key files in ~/.ssh/config too using the IdentityFile setting.  Note that whenever you specify an IdentityFile you should also turn on IdentitiesOnly.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/sync-files-using-rsync-with-non-standard-ssh-port/comment-page-1/#comment-722870">Tomas</a>.</p>
<p>And you should put your non-standard ssh key files in ~/.ssh/config too using the IdentityFile setting.  Note that whenever you specify an IdentityFile you should also turn on IdentitiesOnly.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: BasketCase		</title>
		<link>https://www.tecmint.com/sync-files-using-rsync-with-non-standard-ssh-port/comment-page-1/#comment-722987</link>

		<dc:creator><![CDATA[BasketCase]]></dc:creator>
		<pubDate>Fri, 11 Dec 2015 21:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=17611#comment-722987</guid>

					<description><![CDATA[Just define your non-standard ssh ports in ~/.ssh/config file like so:

Host 192.168.1.103
  Port 1431

Now all ssh based tools will just work without any extra command line hassle.]]></description>
			<content:encoded><![CDATA[<p>Just define your non-standard ssh ports in ~/.ssh/config file like so:</p>
<p>Host 192.168.1.103<br />
  Port 1431</p>
<p>Now all ssh based tools will just work without any extra command line hassle.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: bjrosen		</title>
		<link>https://www.tecmint.com/sync-files-using-rsync-with-non-standard-ssh-port/comment-page-1/#comment-722938</link>

		<dc:creator><![CDATA[bjrosen]]></dc:creator>
		<pubDate>Fri, 11 Dec 2015 19:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=17611#comment-722938</guid>

					<description><![CDATA[The right way to do this is to put the port in the .ssh/config file, that way you don&#039;t need to remember the port numbers. In addition to security the other advantage is that it allows you access many machines from a single IP address. On your router you need to port forward each port to the appropriate machine then you need to alias the different names to the same IP (this is easy to do if you are using dyn.com as your dynamic DNS service, I&#039;m sure it&#039;s trivial with any DNS service). Once you&#039;ve done that you can ssh into different machines by specifying the port number.  Below is an example .ssh/config.

Host tom.foobar.com
	Port 21010
	BatchMode yes
	Compression no
	KeepAlive yes


Host jerry.foobar.com
	Port 21011
	BatchMode yes
	Compression no
	KeepAlive yes]]></description>
			<content:encoded><![CDATA[<p>The right way to do this is to put the port in the .ssh/config file, that way you don&#8217;t need to remember the port numbers. In addition to security the other advantage is that it allows you access many machines from a single IP address. On your router you need to port forward each port to the appropriate machine then you need to alias the different names to the same IP (this is easy to do if you are using dyn.com as your dynamic DNS service, I&#8217;m sure it&#8217;s trivial with any DNS service). Once you&#8217;ve done that you can ssh into different machines by specifying the port number.  Below is an example .ssh/config.</p>
<p>Host tom.foobar.com<br />
	Port 21010<br />
	BatchMode yes<br />
	Compression no<br />
	KeepAlive yes</p>
<p>Host jerry.foobar.com<br />
	Port 21011<br />
	BatchMode yes<br />
	Compression no<br />
	KeepAlive yes</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
