<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://bradnor.ddns.net/bradnorwiki/index.php?action=history&amp;feed=atom&amp;title=Using_rsynch</id>
	<title>Using rsynch - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://bradnor.ddns.net/bradnorwiki/index.php?action=history&amp;feed=atom&amp;title=Using_rsynch"/>
	<link rel="alternate" type="text/html" href="https://bradnor.ddns.net/bradnorwiki/index.php?title=Using_rsynch&amp;action=history"/>
	<updated>2026-04-05T17:56:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://bradnor.ddns.net/bradnorwiki/index.php?title=Using_rsynch&amp;diff=1058&amp;oldid=prev</id>
		<title>Ch at 20:39, 4 November 2019</title>
		<link rel="alternate" type="text/html" href="https://bradnor.ddns.net/bradnorwiki/index.php?title=Using_rsynch&amp;diff=1058&amp;oldid=prev"/>
		<updated>2019-11-04T20:39:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Backup|&amp;amp;lArr; Backup]]&lt;br /&gt;
&lt;br /&gt;
==Using &amp;lt;tt&amp;gt;rsynch&amp;lt;/tt&amp;gt;==&lt;br /&gt;
;create exclude file&lt;br /&gt;
:exclude file lists directories to exclude from backup&lt;br /&gt;
::suggested list&lt;br /&gt;
:::/proc/*&lt;br /&gt;
:::/sys/*&lt;br /&gt;
:::/dev/*&lt;br /&gt;
:::/boot/*&lt;br /&gt;
:::/tmp/*&lt;br /&gt;
:::/run/*&lt;br /&gt;
:::/mnt/*&lt;br /&gt;
:::/media/*&lt;br /&gt;
&lt;br /&gt;
;run or cron&lt;br /&gt;
&lt;br /&gt;
::substitute exclude file above for &amp;lt;excludefile&amp;gt;, backup destination for &amp;lt;dest&amp;gt; and log file for &amp;lt;logfile&amp;gt; name&lt;br /&gt;
:::e.g. &amp;lt;excludefile&amp;gt; /rsynch_exclude.txt&lt;br /&gt;
::::&amp;lt;dest&amp;gt;  /mnt/freecom/backups/bradnorRP1/&lt;br /&gt;
::::&amp;lt;logfile&amp;gt; /backuplog_bradnorRP1.log&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;tt&amp;gt;rsync -av --delete-delay --exclude-from=/&amp;lt;excludefile&amp;gt;.txt /  &amp;lt;dest&amp;gt;  &amp;gt;&amp;gt; /&amp;lt;logfile&amp;gt;.log&amp;lt;/tt&amp;gt;&lt;br /&gt;
::or to preserve hard links and keep remote mirror of rsnapshot&lt;br /&gt;
:&amp;lt;tt&amp;gt;rsync -aHv --delete-delay --numeric-ids --exclude-from=/&amp;lt;excludefile&amp;gt;.txt /  &amp;lt;dest&amp;gt;  &amp;gt;&amp;gt; /&amp;lt;logfile&amp;gt;.log&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;to another server&lt;br /&gt;
:create a key for root which does not require a password&lt;br /&gt;
::&amp;lt;tt&amp;gt;$ ssh-keygen -t rsa&amp;lt;/tt&amp;gt;&lt;br /&gt;
:::and specify a filename for the key but no password&lt;br /&gt;
:set up key-based authentication for ssh on target server&lt;br /&gt;
::create user on target server which accepts root&amp;#039;s key for authentication&lt;br /&gt;
::copy the file to the server you wish to authenticate to and add the public key you created to the &amp;lt;tt&amp;gt;~/.ssh/authorized_keys&amp;lt;/tt&amp;gt; file of the target user&lt;br /&gt;
:use rsync to copy files, e.g.&lt;br /&gt;
:::&amp;lt;tt&amp;gt;sudo rsync -aHv --delete-delay --numeric-ids  /var/lib/rsnapshot  rpbackup@192.168.192.203:/rpbackups/RP1-rsnapshot&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ch</name></author>
	</entry>
</feed>