<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.bwhpc.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Registration%2FSSH%2Frrsync</id>
	<title>Registration/SSH/rrsync - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.bwhpc.de/wiki/index.php?action=history&amp;feed=atom&amp;title=Registration%2FSSH%2Frrsync"/>
	<link rel="alternate" type="text/html" href="https://wiki.bwhpc.de/wiki/index.php?title=Registration/SSH/rrsync&amp;action=history"/>
	<updated>2026-05-13T23:54:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://wiki.bwhpc.de/wiki/index.php?title=Registration/SSH/rrsync&amp;diff=15259&amp;oldid=prev</id>
		<title>H Winkhardt: UC2 -&gt; UC3</title>
		<link rel="alternate" type="text/html" href="https://wiki.bwhpc.de/wiki/index.php?title=Registration/SSH/rrsync&amp;diff=15259&amp;oldid=prev"/>
		<updated>2025-09-01T13:22:28Z</updated>

		<summary type="html">&lt;p&gt;UC2 -&amp;gt; UC3&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:22, 1 September 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you want to use the rrysnc command, you must specify the following paths on the clusters:&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you want to use the rrysnc command, you must specify the following paths on the clusters:&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;bwUniCluster2&lt;/del&gt;.0:&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;bwUniCluster3&lt;/ins&gt;.0:&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;/usr/bin/rrsync&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;/usr/bin/rrsync&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* HELIX/NEMO:&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* HELIX/NEMO:&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>H Winkhardt</name></author>
	</entry>
	<entry>
		<id>https://wiki.bwhpc.de/wiki/index.php?title=Registration/SSH/rrsync&amp;diff=12420&amp;oldid=prev</id>
		<title>M Janczyk: Created page with &quot;= RSYNC for SSH Command Keys =  If you want to use rsync for SSH command keys, you normally need one SSH key per directory that you want to synchronize. With rrsync you can us...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.bwhpc.de/wiki/index.php?title=Registration/SSH/rrsync&amp;diff=12420&amp;oldid=prev"/>
		<updated>2023-11-08T14:30:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= RSYNC for SSH Command Keys =  If you want to use rsync for SSH command keys, you normally need one SSH key per directory that you want to synchronize. With rrsync you can us...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= RSYNC for SSH Command Keys =&lt;br /&gt;
&lt;br /&gt;
If you want to use rsync for SSH command keys, you normally need one SSH key per directory that you want to synchronize.&lt;br /&gt;
With rrsync you can use one SSH key per main directory.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
You can find all the options in the [https://github.com/WayneD/rsync/blob/master/support/rrsync.1.md man page] for rrsync.&lt;br /&gt;
Below we provide some useful examples for daily use on the bwHPC clusters.&lt;br /&gt;
&lt;br /&gt;
If you want to copy files from your home directory but only want to allow read operations, you can use the following SSH command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/usr/local/bin/rrsync -ro /home/aa/aa_bb/aa_abc1/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Ssh-com.png|center|600px|thumb|Add command SSH key to service.]]&lt;br /&gt;
&lt;br /&gt;
Then you can run the following rsync command (replace login.cluster.bw with the node you want to use):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -av login.cluster.bw:homesubdir/ localsubdir/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For read-only access to your workspaces, you could use the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -av localsubdir/ login.cluster.bw:homesubdir/&lt;br /&gt;
/usr/local/bin/rrsync error: sending to read-only server is not allowed&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For write-only access to your workspaces, you could use the following command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/usr/local/bin/rrsync -wo /workspace/aa_abc1-abc-0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[File:Ssh-com.png|center|600px|thumb|Add command SSH key to service.]]&lt;br /&gt;
&lt;br /&gt;
{|style=&amp;quot;background:#deffee; width:100%;&amp;quot;&lt;br /&gt;
|style=&amp;quot;padding:5px; background:#cef2e0; text-align:left&amp;quot;|&lt;br /&gt;
[[Image:Attention.svg|center|25px]]&lt;br /&gt;
|style=&amp;quot;padding:5px; background:#cef2e0; text-align:left&amp;quot;|&lt;br /&gt;
With rrsync, you must use relative paths starting from the configured path in your SSH command.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Then you could run the following rsync command (replace login.cluster.bw with the node you want to use and your user home):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -av localsubdir/ login.cluster.bw:workspacesubdir/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reading is not permitted with read-only access.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -av login.cluster.bw:workspacesubdir/ localsubdir/&lt;br /&gt;
/usr/local/bin/rrsync error: reading from write-only server is not allowed&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you do not want to restrict read or write access, simply omit &amp;#039;-ro&amp;#039; or &amp;#039;-wo&amp;#039; from your SSH command:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/usr/local/bin/rrsync -ro /home/aa/aa_bb/aa_abc1/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== rrsync Path on the Clusters ==&lt;br /&gt;
&lt;br /&gt;
If you want to use the rrysnc command, you must specify the following paths on the clusters:&lt;br /&gt;
* bwUniCluster2.0:&lt;br /&gt;
&amp;lt;pre&amp;gt;/usr/bin/rrsync&amp;lt;/pre&amp;gt;&lt;br /&gt;
* HELIX/NEMO:&lt;br /&gt;
&amp;lt;pre&amp;gt;/usr/local/bin/rrsync&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>M Janczyk</name></author>
	</entry>
</feed>