<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://mediawiki.netbreaker.de/mediawiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
		<id>http://mediawiki.netbreaker.de/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Rsnapshot</id>
		<title>Rsnapshot - Versionsgeschichte</title>
		<link rel="self" type="application/atom+xml" href="http://mediawiki.netbreaker.de/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Rsnapshot"/>
		<link rel="alternate" type="text/html" href="http://mediawiki.netbreaker.de/mediawiki/index.php?title=Rsnapshot&amp;action=history"/>
		<updated>2026-05-30T00:43:27Z</updated>
		<subtitle>Versionsgeschichte dieser Seite in ConfigWiki</subtitle>
		<generator>MediaWiki 1.19.20+dfsg-0+deb7u3</generator>

	<entry>
		<id>http://mediawiki.netbreaker.de/mediawiki/index.php?title=Rsnapshot&amp;diff=1246&amp;oldid=prev</id>
		<title>Netbreaker am 7. Februar 2012 um 17:50 Uhr</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.netbreaker.de/mediawiki/index.php?title=Rsnapshot&amp;diff=1246&amp;oldid=prev"/>
				<updated>2012-02-07T17:50:16Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Nächstältere Version&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version vom 7. Februar 2012, 17:50 Uhr&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 68:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 68:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; ~# host $BACKUPSERVER_IP&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; ~# host $BACKUPSERVER_IP&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;auf dem zu sichernden Server.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;auf dem zu sichernden Server.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Falls jedoch beim SSH-Server des Clients die Option '''UseDNS no''' in der ''sshd_config'' gesetzt ist, so ist an dieser Stelle die IP-Adresse einzutragen, da die Verbindung sonst abgelehnt wird.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Die rsync-Optionen korrespondieren mit denen aus der rsnapshot-Konfiguration. Anpassungen müssen auf beiden Seiten erfolgen. Stimmt der Aufruf nicht überein, schlägt rsync fehl, wird ein Verzeichnis nur in der .conf am Ende ergänzt, wird dieses ignoriert. Zu beachten ist der fehlende &amp;quot;/&amp;quot; hinter der letzten Pfadangabe.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Die rsync-Optionen korrespondieren mit denen aus der rsnapshot-Konfiguration. Anpassungen müssen auf beiden Seiten erfolgen. Stimmt der Aufruf nicht überein, schlägt rsync fehl, wird ein Verzeichnis nur in der .conf am Ende ergänzt, wird dieses ignoriert. Zu beachten ist der fehlende &amp;quot;/&amp;quot; hinter der letzten Pfadangabe.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Netbreaker</name></author>	</entry>

	<entry>
		<id>http://mediawiki.netbreaker.de/mediawiki/index.php?title=Rsnapshot&amp;diff=1245&amp;oldid=prev</id>
		<title>Netbreaker am 6. Februar 2012 um 18:10 Uhr</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.netbreaker.de/mediawiki/index.php?title=Rsnapshot&amp;diff=1245&amp;oldid=prev"/>
				<updated>2012-02-06T18:10:59Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Nächstältere Version&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version vom 6. Februar 2012, 18:10 Uhr&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 56:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; ~# ssh-copy-id -i /etc/rsnapshot.d/id_rsa root@srv01&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; ~# ssh-copy-id -i /etc/rsnapshot.d/id_rsa root@srv01&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;übertragen werden. Dazu wird aber ein Login per Passwort bei '''root''' auf '''srv01''' oder besser ein dort hinterlegter Key benötigt, der per ForwardAgent in der aktuellen Sitzung aktiv ist. Sonst muß der Key per '''scp''' übertragen und lokal an die '''authorized_keys''' angefügt werden.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;übertragen werden. Dazu wird aber ein Login per Passwort bei '''root''' auf '''srv01''' oder besser ein dort hinterlegter Key benötigt, der per ForwardAgent in der aktuellen Sitzung aktiv ist. Sonst muß der Key per '''scp''' übertragen und lokal an die '''authorized_keys''' angefügt werden.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Falls der Key nicht per ssh vom Backupserver zum Backupclient übertragen wird, ist zumindest eine SSH-Testverbindung zu diesem aufzubauen, da sonst das Backup aufgrund fehlendem Hostkey abbricht.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Mehrere zu sichernde entfernte Verzeichnisse werden mit einem &amp;quot;:&amp;quot; beginnend angegeben (siehe auch '''man rsync'''). Diese Verzeichnisse tauchen auch in der Zeile des Backup-Keys in der authorized_keys des zu sichernden Servers auf:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Mehrere zu sichernde entfernte Verzeichnisse werden mit einem &amp;quot;:&amp;quot; beginnend angegeben (siehe auch '''man rsync'''). Diese Verzeichnisse tauchen auch in der Zeile des Backup-Keys in der authorized_keys des zu sichernden Servers auf:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Netbreaker</name></author>	</entry>

	<entry>
		<id>http://mediawiki.netbreaker.de/mediawiki/index.php?title=Rsnapshot&amp;diff=1232&amp;oldid=prev</id>
		<title>Thomasm am 1. Februar 2012 um 09:46 Uhr</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.netbreaker.de/mediawiki/index.php?title=Rsnapshot&amp;diff=1232&amp;oldid=prev"/>
				<updated>2012-02-01T09:46:37Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Nächstältere Version&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version vom 1. Februar 2012, 09:46 Uhr&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Linux]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Es erstellt versionierte Backups und kann mehrere lokale und entfernte Quellen via rsync + ssh sichern.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Es erstellt versionierte Backups und kann mehrere lokale und entfernte Quellen via rsync + ssh sichern.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Thomasm</name></author>	</entry>

	<entry>
		<id>http://mediawiki.netbreaker.de/mediawiki/index.php?title=Rsnapshot&amp;diff=746&amp;oldid=prev</id>
		<title>Netbreaker am 18. Juli 2011 um 11:55 Uhr</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.netbreaker.de/mediawiki/index.php?title=Rsnapshot&amp;diff=746&amp;oldid=prev"/>
				<updated>2011-07-18T11:55:16Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Nächstältere Version&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version vom 18. Juli 2011, 11:55 Uhr&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 31:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 31:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Da die Basiskonfiguration von rsnapshot direkt in /etc liegt, legen wir für weitere Dateien das Verzeichnis '''/etc/rsnapshot.d''' an.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Da die Basiskonfiguration von rsnapshot direkt in /etc liegt, legen wir für weitere Dateien das Verzeichnis '''/etc/rsnapshot.d''' an.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Darin werden der SSH-Key (id_rsa), die '''exclude.list''' für localhost, weitere '''exclude-*.list''' für externe Backupquellen, sowie später weitere '''*.conf''' für eigene Prozesse abgelegt.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Darin werden der SSH-Key (id_rsa), die '''exclude.list''' für localhost, weitere '''exclude-*.list''' für externe Backupquellen, sowie später weitere '''*.conf''' für eigene Prozesse abgelegt.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;exclude.list:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; */tmp/*&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; */sess_*&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; *.tmp&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; *.bak&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; *.log&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; *.log.1&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;In weiteren Konfigurationen muß auf jeden Fall ein abweichendes '''snapshot_root''' verwendet werden!&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;In weiteren Konfigurationen muß auf jeden Fall ein abweichendes '''snapshot_root''' verwendet werden!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Netbreaker</name></author>	</entry>

	<entry>
		<id>http://mediawiki.netbreaker.de/mediawiki/index.php?title=Rsnapshot&amp;diff=686&amp;oldid=prev</id>
		<title>Netbreaker am 2. Juni 2011 um 16:35 Uhr</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.netbreaker.de/mediawiki/index.php?title=Rsnapshot&amp;diff=686&amp;oldid=prev"/>
				<updated>2011-06-02T16:35:39Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Nächstältere Version&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version vom 2. Juni 2011, 16:35 Uhr&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 50:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 50:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Mehrere zu sichernde entfernte Verzeichnisse werden mit einem &amp;quot;:&amp;quot; beginnend angegeben (siehe auch '''man rsync'''). Diese Verzeichnisse tauchen auch in der Zeile des Backup-Keys in der authorized_keys des zu sichernden Servers auf:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Mehrere zu sichernde entfernte Verzeichnisse werden mit einem &amp;quot;:&amp;quot; beginnend angegeben (siehe auch '''man rsync'''). Diese Verzeichnisse tauchen auch in der Zeile des Backup-Keys in der authorized_keys des zu sichernden Servers auf:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; from=&amp;quot;backup-server&amp;quot;,no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,\&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; from=&amp;quot;backup-server&amp;quot;,no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,\&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; command=&amp;quot;rsync --server --sender -vlogDtprRe.iLsf --numeric-ids . /home/ /var/backups/ /etc/ /root&amp;quot; ssh-rsa AAA...Bw1 rsnapshot@backup-server&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; command=&amp;quot;rsync --server --sender -vlogDtprRe.iLsf --numeric-ids . /home/ /var/backups/ /etc/ /root&amp;quot; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;ssh-rsa AAA...Bw1 rsnapshot@backup-server&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(alles in einer Zeile, vor command darf kein Leerzeichen stehen, die \ stehen für das Zeilenende und sind inkl. Zeilenumbruch wieder zu entfernen)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Die Angabe des Servernamens im from=&amp;quot;...&amp;quot; ermittelt man am Besten mit&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Die Angabe des Servernamens im from=&amp;quot;...&amp;quot; ermittelt man am Besten mit&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Netbreaker</name></author>	</entry>

	<entry>
		<id>http://mediawiki.netbreaker.de/mediawiki/index.php?title=Rsnapshot&amp;diff=685&amp;oldid=prev</id>
		<title>Netbreaker am 2. Juni 2011 um 16:28 Uhr</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.netbreaker.de/mediawiki/index.php?title=Rsnapshot&amp;diff=685&amp;oldid=prev"/>
				<updated>2011-06-02T16:28:36Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Nächstältere Version&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version vom 2. Juni 2011, 16:28 Uhr&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 83:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 83:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Für den eigenen Cronjob wird /etc/cron.d/rsnapshot kopiert:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Für den eigenen Cronjob wird /etc/cron.d/rsnapshot kopiert:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; cp /etc/cron.d/rsnapshot /etc/cron.d/rsnapshot-buero&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;~# &lt;/ins&gt;cp /etc/cron.d/rsnapshot /etc/cron.d/rsnapshot-buero&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;und angepaßt:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;und angepaßt:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Netbreaker</name></author>	</entry>

	<entry>
		<id>http://mediawiki.netbreaker.de/mediawiki/index.php?title=Rsnapshot&amp;diff=684&amp;oldid=prev</id>
		<title>Netbreaker: Die Seite wurde neu angelegt: Es erstellt versionierte Backups und kann mehrere lokale und entfernte Quellen via rsync + ssh sichern.  Die einzelnen Quellen werden sequenziell abgearbeitet, sodaß e...</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.netbreaker.de/mediawiki/index.php?title=Rsnapshot&amp;diff=684&amp;oldid=prev"/>
				<updated>2011-06-02T15:33:52Z</updated>
		
		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: Es erstellt versionierte Backups und kann mehrere lokale und entfernte Quellen via rsync + ssh sichern.  Die einzelnen Quellen werden sequenziell abgearbeitet, sodaß e...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Es erstellt versionierte Backups und kann mehrere lokale und entfernte Quellen via rsync + ssh sichern.&lt;br /&gt;
&lt;br /&gt;
Die einzelnen Quellen werden sequenziell abgearbeitet, sodaß einerseits keine zu hohe Last auf dem System entsteht, andererseits langsame Verbindungen den Prozeß stark in die Länge ziehen können. Um dies zu verhindern, können mehrere Konfigurationen angelegt werden, die durch separate Cronjobs getrennt aufgerufen werden. &lt;br /&gt;
&lt;br /&gt;
Wichtige Anpassungen in der Konfiguration&lt;br /&gt;
/etc/rsnapshot.conf:&lt;br /&gt;
 snapshot_root	/srv/backup/&lt;br /&gt;
 rsync_short_args	-av&lt;br /&gt;
 rsync_long_args	--delete --numeric-ids --relative --delete-excluded&lt;br /&gt;
 ssh_args	-C -i /etc/rsnapshot.d/id_rsa&lt;br /&gt;
 exclude_file	/etc/rsnapshot.d/exclude.list&lt;br /&gt;
 &lt;br /&gt;
 logfile	/var/log/rsnapshot.log&lt;br /&gt;
 lockfile	/var/run/rsnapshot.pid&lt;br /&gt;
 &lt;br /&gt;
 ###############################&lt;br /&gt;
 ### BACKUP POINTS / SCRIPTS ###&lt;br /&gt;
 ###############################&lt;br /&gt;
 &lt;br /&gt;
 backup_script	/bin/date &amp;quot;+ backup of LOCALHOST started at %c&amp;quot;	unused0&lt;br /&gt;
 backup	/home/		localhost/&lt;br /&gt;
 backup	/etc/		localhost/&lt;br /&gt;
 backup	/root/		localhost/&lt;br /&gt;
 backup	/var/backups/	localhost/&lt;br /&gt;
 &lt;br /&gt;
 backup_script	/bin/date &amp;quot;+ backup of SRV01 started at %c&amp;quot;	unused1&lt;br /&gt;
 backup	root@srv01:/home/ :/var/backups/ :/etc/ :/root/	srv01/	exclude_file=/etc/rsnapshot.d/exclude-srv01.list&lt;br /&gt;
 &lt;br /&gt;
 backup_script	/bin/date &amp;quot;+ backup ended at %c&amp;quot;	unused9&lt;br /&gt;
&lt;br /&gt;
Da die Basiskonfiguration von rsnapshot direkt in /etc liegt, legen wir für weitere Dateien das Verzeichnis '''/etc/rsnapshot.d''' an.&lt;br /&gt;
Darin werden der SSH-Key (id_rsa), die '''exclude.list''' für localhost, weitere '''exclude-*.list''' für externe Backupquellen, sowie später weitere '''*.conf''' für eigene Prozesse abgelegt.&lt;br /&gt;
&lt;br /&gt;
In weiteren Konfigurationen muß auf jeden Fall ein abweichendes '''snapshot_root''' verwendet werden!&lt;br /&gt;
&lt;br /&gt;
Da jeder Backuplauf die darin enthaltenen Verzeichnisse rotiert, würde dies zu häufig geschehen und ältere Backups früher als geplant gelöscht. Es entstehen u.U. auch Lücken in den Backups, falls sich die Intervalle unterscheiden. Das hat wiederum zur Folge, daß unnötige Vollbackups gezogen werden. Dadurch steigt sowohl die übertragene Datenmenge als auch der benötigte Festplattenplatz enorm an.&lt;br /&gt;
&lt;br /&gt;
Damit die Backupprozesse unabhängig voneinander laufen können, benötigt jeder ein eigenes '''lockfile'''. &lt;br /&gt;
&lt;br /&gt;
Bei Bedarf kann auch ein eigenes '''logfile''' und ggf. auch ein eigener SSH-Key angegeben werden. Das '''exclude_file''' ist bei zusätzlichen Konfigurationen nicht nötig, da es hier in dem Backup-Aufruf als '''exclude_file=...''' angegeben wird.&lt;br /&gt;
&lt;br /&gt;
Den SSH-Key erzeugen wir mit&lt;br /&gt;
 ~# ssh-keygen -C rsnapshot@backup-server -f /etc/rsnapshot.d/id_rsa&lt;br /&gt;
und geben kein Passwort an.&lt;br /&gt;
&lt;br /&gt;
Danach kann dieser mit&lt;br /&gt;
 ~# ssh-copy-id -i /etc/rsnapshot.d/id_rsa root@srv01&lt;br /&gt;
übertragen werden. Dazu wird aber ein Login per Passwort bei '''root''' auf '''srv01''' oder besser ein dort hinterlegter Key benötigt, der per ForwardAgent in der aktuellen Sitzung aktiv ist. Sonst muß der Key per '''scp''' übertragen und lokal an die '''authorized_keys''' angefügt werden.&lt;br /&gt;
&lt;br /&gt;
Mehrere zu sichernde entfernte Verzeichnisse werden mit einem &amp;quot;:&amp;quot; beginnend angegeben (siehe auch '''man rsync'''). Diese Verzeichnisse tauchen auch in der Zeile des Backup-Keys in der authorized_keys des zu sichernden Servers auf:&lt;br /&gt;
 from=&amp;quot;backup-server&amp;quot;,no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,\&lt;br /&gt;
 command=&amp;quot;rsync --server --sender -vlogDtprRe.iLsf --numeric-ids . /home/ /var/backups/ /etc/ /root&amp;quot; ssh-rsa AAA...Bw1 rsnapshot@backup-server&lt;br /&gt;
&lt;br /&gt;
Die Angabe des Servernamens im from=&amp;quot;...&amp;quot; ermittelt man am Besten mit&lt;br /&gt;
 ~# host $BACKUPSERVER_IP&lt;br /&gt;
auf dem zu sichernden Server.&lt;br /&gt;
&lt;br /&gt;
Die rsync-Optionen korrespondieren mit denen aus der rsnapshot-Konfiguration. Anpassungen müssen auf beiden Seiten erfolgen. Stimmt der Aufruf nicht überein, schlägt rsync fehl, wird ein Verzeichnis nur in der .conf am Ende ergänzt, wird dieses ignoriert. Zu beachten ist der fehlende &amp;quot;/&amp;quot; hinter der letzten Pfadangabe.&lt;br /&gt;
&lt;br /&gt;
Die date-Aufrufe sind nur informativ, um den zeitlichen Ablauf in der Status-Mail zu sehen. Das dahinter angegebene '''unused*''' darf in einer Konfiguration nicht mehrfach verwendet werden, da es als Dummy für das Backup-Target steht. Ein mehrfach verwendetes Backup-Target verhindert die Ausführung des Backups.&lt;br /&gt;
&lt;br /&gt;
Ein eigener Prozeß für das mit einer langsamen Leitung angeschlossene Büro würde etwa so aussehen:&lt;br /&gt;
&lt;br /&gt;
/etc/rsnaphot.d/buero.conf&lt;br /&gt;
 snapshot_root	/srv/backup_buero/&lt;br /&gt;
 rsync_short_args	-av&lt;br /&gt;
 rsync_long_args	--delete --numeric-ids --relative --delete-excluded&lt;br /&gt;
 ssh_args	-C -i /etc/rsnapshot.d/id_rsa&lt;br /&gt;
 &lt;br /&gt;
 logfile	/var/log/rsnapshot-buero.log&lt;br /&gt;
 lockfile	/var/run/rsnapshot-buero.pid&lt;br /&gt;
 &lt;br /&gt;
 #interval	hourly&lt;br /&gt;
 &lt;br /&gt;
 ###############################&lt;br /&gt;
 ### BACKUP POINTS / SCRIPTS ###&lt;br /&gt;
 ###############################&lt;br /&gt;
 &lt;br /&gt;
 backup_script	/bin/date &amp;quot;+ backup of BUERO started at %c&amp;quot;	unused1&lt;br /&gt;
 backup	root@srv01:/home/ :/var/backups/ :/etc/ :/root/	srv01/	exclude_file=/etc/rsnapshot.d/exclude-buero.list&lt;br /&gt;
 &lt;br /&gt;
 backup_script	/bin/date &amp;quot;+ backup ended at %c&amp;quot;	unused9&lt;br /&gt;
&lt;br /&gt;
Für den eigenen Cronjob wird /etc/cron.d/rsnapshot kopiert:&lt;br /&gt;
 cp /etc/cron.d/rsnapshot /etc/cron.d/rsnapshot-buero&lt;br /&gt;
&lt;br /&gt;
und angepaßt:&lt;br /&gt;
 #10 1-23/4 * * *		root	/usr/bin/rsnapshot -c /etc/rsnapshot.d/buero.conf hourly&lt;br /&gt;
 35 1  	* * *		root	/usr/bin/rsnapshot -c /etc/rsnapshot.d/buero.conf daily&lt;br /&gt;
 5  1  	* * 1		root	/usr/bin/rsnapshot -c /etc/rsnapshot.d/buero.conf weekly&lt;br /&gt;
 35 0  	1 * *		root	/usr/bin/rsnapshot -c /etc/rsnapshot.d/buero.conf monthly&lt;br /&gt;
&lt;br /&gt;
Die stündliche Sicherung wird sowohl in der buero.conf, als auch im Cronjob deaktiviert, damit das Backup den Internetzugang tagsüber nicht lahmlegt.&lt;/div&gt;</summary>
		<author><name>Netbreaker</name></author>	</entry>

	</feed>