<?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>Linux 360° &#124; Italia &#187; rsync</title>
	<atom:link href="http://www.linux360.it/tag/rsync/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linux360.it</link>
	<description>Notizie, guide e tutorial per il mondo Linux a 360°</description>
	<lastBuildDate>Tue, 16 Dec 2014 14:03:33 +0000</lastBuildDate>
	<language>it-IT</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>Configurare un Server Rsync in modalità Demone</title>
		<link>http://www.linux360.it/2014/10/22/configurare-un-server-rsync-in-modalita-demone/</link>
		<comments>http://www.linux360.it/2014/10/22/configurare-un-server-rsync-in-modalita-demone/#comments</comments>
		<pubDate>Wed, 22 Oct 2014 15:15:39 +0000</pubDate>
		<dc:creator><![CDATA[Francesco Gabriele]]></dc:creator>
				<category><![CDATA[rsync]]></category>
		<category><![CDATA[backuprsync]]></category>

		<guid isPermaLink="false">http://www.ubuntuserver.it/?p=781</guid>
		<description><![CDATA[<p>Se abbiamo la necessità di eseguire dei backup corposi tra due macchine della stessa rete locale ci viene in aiuto il fantastico tool Rsync. Rsync è un potentissimo software a riga di comando per la sincronizzazione di file e cartelle in ambiente Unix, Windows e Mac OS. Esso può funzionare in due modalità 1) Come ...</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/10/22/configurare-un-server-rsync-in-modalita-demone/">Configurare un Server Rsync in modalità Demone</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Se abbiamo la necessità di eseguire dei backup corposi tra due macchine della stessa rete locale ci viene in aiuto il fantastico tool Rsync.</p>
<p>Rsync è un potentissimo software a riga di comando per la sincronizzazione di file e cartelle in ambiente Unix, Windows e Mac OS.</p>
<p>Esso può funzionare in due modalità<br />
1) Come Demone Rsyncd<br />
2) All&#8217;interno di un Tunnell SSH</p>
<p>Oggi andremo a vedere la prima modalità,  la modalità Demone rispetto al tunnell ssh ha un trasferimento è molto più veloce  in quanto non usando nessuna crittografia impegna meno banda ed elimina eventuali overhead dovuto proprio alla crittografia.</p>
<p>Ho effettuato alcuni test di trasferimento su rete gigabit &#8220;Rsyncd vs SSH&#8221; di seguito i risultati:<br />
<strong>rsync with ssh &#8211; 200-300 Mbps</strong><br />
<strong>rsyncd &#8211; 800 Mbps</strong></p>
<p>Veniamo a noi, procediamo con la parte Server</p>
<p><strong>Installiamo il demone lato server</strong></p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">apt-get</span> <span class="kw2">install</span> rsync</pre></div></div>
<p><strong>Abilitiamo il servizio</strong></p>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">vim</span> <span class="sy0">/</span>etc<span class="sy0">/</span>default<span class="sy0">/</span>rsync
&nbsp;
<span class="re2">RSYNC_ENABLE</span>=<span class="kw2">true</span></pre></div></div>
<p><strong>Creiamo il file di configurazione in questo modo</strong></p>
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">vim</span> <span class="sy0">/</span>etc<span class="sy0">/</span>rsyncd.conf
&nbsp;
log <span class="kw2">file</span> = <span class="sy0">/</span>var<span class="sy0">/</span>log<span class="sy0">/</span>rsyncd
transfer logging = <span class="kw2">yes</span>
hosts allow = 192.168.7.200, 192.168.7.110
max connections = 2
hosts deny = <span class="sy0">*</span>
uid = root
gid = root
list = <span class="kw2">true</span>
use <span class="kw2">chroot</span> = <span class="kw2">false</span>
strict modes = <span class="kw2">false</span>
<span class="kw2">read</span> only = <span class="kw2">false</span>
ignore nonreadable = <span class="kw2">yes</span>
dont compress = <span class="sy0">*</span>.gz <span class="sy0">*</span>.tgz <span class="sy0">*</span>.zip <span class="sy0">*</span>.rpm <span class="sy0">*</span>.deb <span class="sy0">*</span>.iso <span class="sy0">*</span>.bz2 <span class="sy0">*</span>.jpg <span class="sy0">*</span>.mpg <span class="sy0">*</span>.mpeg
reverse lookup = no <span class="co0"># Solo dalla versione 3.1.x</span>
&nbsp;
<span class="br0">[</span>Backup<span class="br0">]</span>
path = <span class="sy0">/</span>backup
comment = Cartella Backup</pre></div></div>
<p><strong>Creiamo la cartella </strong></p>
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">mkdir</span> <span class="sy0">/</span>backup</pre></div></div>
<p><strong>Riavviamo il servizio</strong></p>
<div id="wpshdo_5" class="wp-synhighlighter-outer"><div id="wpshdt_5" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_5"></a><a id="wpshat_5" class="wp-synhighlighter-title" href="#codesyntax_5"  onClick="javascript:wpsh_toggleBlock(5)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_5" onClick="javascript:wpsh_code(5)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_5" onClick="javascript:wpsh_print(5)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">service rsync restart</pre></div></div>
<p><strong>Ora proviamo a sincronizzare una cartella verso il server rsync</strong></p>
<div id="wpshdo_6" class="wp-synhighlighter-outer"><div id="wpshdt_6" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_6"></a><a id="wpshat_6" class="wp-synhighlighter-title" href="#codesyntax_6"  onClick="javascript:wpsh_toggleBlock(6)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_6" onClick="javascript:wpsh_code(6)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_6" onClick="javascript:wpsh_print(6)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_6" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">ex. rsync <span class="re5">-avzP</span> folder <span class="br0">[</span>hostname<span class="sy0">/</span>IP address<span class="br0">]</span>::Backup<span class="sy0">/</span>
&nbsp;
rsync <span class="re5">-avzP</span> documenti 192.168.7.50::Backup</pre></div></div>
<p>Questo comando copiera la cartella documenti sul server rsync.<br />
Una cosa da notare, per impostazione predefinita il demone Rsync utilizza la porta<br />
<strong>TCP 873</strong> per comunicare con i client, quindi ricordiamoci di aprire questa porta<br />
se abbiamo firewall intermedi</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/10/22/configurare-un-server-rsync-in-modalita-demone/">Configurare un Server Rsync in modalità Demone</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2014/10/22/configurare-un-server-rsync-in-modalita-demone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
