<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://cocnm.computerisms.ca/index.php?action=history&amp;feed=atom&amp;title=Install_Rsnapshot</id>
	<title>Install Rsnapshot - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://cocnm.computerisms.ca/index.php?action=history&amp;feed=atom&amp;title=Install_Rsnapshot"/>
	<link rel="alternate" type="text/html" href="http://cocnm.computerisms.ca/index.php?title=Install_Rsnapshot&amp;action=history"/>
	<updated>2026-11-14T11:44:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://cocnm.computerisms.ca/index.php?title=Install_Rsnapshot&amp;diff=439&amp;oldid=prev</id>
		<title>Bob: /* Set Up All the Automation */</title>
		<link rel="alternate" type="text/html" href="http://cocnm.computerisms.ca/index.php?title=Install_Rsnapshot&amp;diff=439&amp;oldid=prev"/>
		<updated>2015-03-17T01:18:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Set Up All the Automation&lt;/span&gt;&lt;/span&gt;&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 01:18, 17 March 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l41&quot;&gt;Line 41:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&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;**00 21 * * * bash /root/scripts/rsnap.daily.sh&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;**00 21 * * * bash /root/scripts/rsnap.daily.sh&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;**01 21 * * 6 /usr/bin/rsnapshot weekly&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;**01 21 * * 6 /usr/bin/rsnapshot weekly&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;**02 21 * * * nice -10 rsync -&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Hrax &lt;/del&gt;--delete --exclude *.gvfs --exclude /proc --exclude /sys --exclude /dev --exclude /media --exclude /mnt --exclude /home --exclude /service root@192.168.26.10:/* /home/houselian&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;**02 21 * * * nice -10 rsync -&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;aHAXx &lt;/ins&gt;--delete --exclude *.gvfs --exclude /proc --exclude /sys --exclude /dev --exclude /media --exclude /mnt --exclude /home --exclude /service root@192.168.26.10:/* /home/houselian&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;**03 21 * * * nice -10 rsync -&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Hrax &lt;/del&gt;--delete --exclude *.gvfs --exclude /proc --exclude /sys --exclude /dev --exclude /media --exclude /mnt root@192.168.26.1:/* /home/porchlian&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;**03 21 * * * nice -10 rsync -&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;aHAXx &lt;/ins&gt;--delete --exclude *.gvfs --exclude /proc --exclude /sys --exclude /dev --exclude /media --exclude /mnt root@192.168.26.1:/* /home/porchlian&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;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;==Restoring Porchlian/Houselian==&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;==Restoring Porchlian/Houselian==&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;*reverse the rsync to a partition on a new drive, use a boot disk to install grub2 on that drive, and it will boot&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;*reverse the rsync to a partition on a new drive, use a boot disk to install grub2 on that drive, and it will boot&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bob</name></author>
	</entry>
	<entry>
		<id>http://cocnm.computerisms.ca/index.php?title=Install_Rsnapshot&amp;diff=347&amp;oldid=prev</id>
		<title>Bob: /* System Prep */</title>
		<link rel="alternate" type="text/html" href="http://cocnm.computerisms.ca/index.php?title=Install_Rsnapshot&amp;diff=347&amp;oldid=prev"/>
		<updated>2013-09-20T03:17:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;System Prep&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==System Prep==&lt;br /&gt;
*&amp;lt;b&amp;gt;Note: In production this machine should be in a different building than houselian&amp;lt;/b&amp;gt;&lt;br /&gt;
*apt-get install rsnapshot&lt;br /&gt;
*Set up partitioning and fstab with the following considerations:&lt;br /&gt;
**mount your backup volume under /home/backups&lt;br /&gt;
**carve a 5 GB partition and mount it under /home/porchlian&lt;br /&gt;
**carve a 20 GB partition and mount it under /home/houselian&lt;br /&gt;
&lt;br /&gt;
==Configure Rsnapshot==&lt;br /&gt;
*mkdir /home/backups&lt;br /&gt;
*&amp;gt; /etc/rsnapshot.conf; vi [[/etc/rsnapshot.conf]]&lt;br /&gt;
*vi [[/root/scripts/rsnap.daily.sh]]&lt;br /&gt;
&lt;br /&gt;
==Configure Exim==&lt;br /&gt;
*dpkg-reconfigure exim4-config&lt;br /&gt;
*send by smart host, no local mail=&amp;gt;set System Name as computerisms.com=&amp;gt;Set IP as 127.0.0.1=&amp;gt;No destinations accepted=&amp;gt;set Visible Name as computerisms.com=&amp;gt;Set hostname as mail.computerisms.com=&amp;gt;no=&amp;gt;no&lt;br /&gt;
&lt;br /&gt;
==Distribute SSH Keys==&lt;br /&gt;
*ssh-keygen -b 4096 -t rsa (empty passphrase)&lt;br /&gt;
*i=$(cat /root/.ssh/id_rsa.pub); ssh root@192.168.26.10 &amp;quot;echo $i &amp;gt;&amp;gt; /root/.ssh/authorized_keys&amp;quot;&lt;br /&gt;
*i=$(cat /root/.ssh/id_rsa.pub); ssh root@192.168.26.1 &amp;quot;echo $i &amp;gt;&amp;gt; /root/.ssh/authorized_keys&amp;quot;&lt;br /&gt;
*ssh root@192.168.26.10 &amp;lt;b&amp;gt;&amp;lt;= Make sure you can log in without a password&amp;lt;/b&amp;gt;&lt;br /&gt;
*exit&lt;br /&gt;
*ssh root@192.168.26.1 &amp;lt;b&amp;gt;&amp;lt;= Make sure you can log in without a password&amp;lt;/b&amp;gt;&lt;br /&gt;
*exit&lt;br /&gt;
&lt;br /&gt;
==Set Up Database Dumps and Samba Backups==&lt;br /&gt;
*ssh root@192.168.26.10&lt;br /&gt;
*mkdir /root/SQLDumps&lt;br /&gt;
*mkdir /usr/local/SambaBackups&lt;br /&gt;
*chmod 750 /root/S* /root/scripts/&lt;br /&gt;
*vi [[/root/scripts/SQLdump.sh]]&lt;br /&gt;
*sed &amp;#039;s!WHERE=/usr/local/backups!WHERE=/usr/local/SambaBackups!&amp;#039; /usr/src/samba-4.0.7/source4/scripting/bin/samba_backup &amp;gt; /usr/local/samba/bin/samba_backup&lt;br /&gt;
*crontab -e&lt;br /&gt;
**10 21 * * * bash /root/scripts/SQLdump.sh&lt;br /&gt;
**10 42 * * * bash /usr/local/samba/bin/samba_backup&lt;br /&gt;
*exit&lt;br /&gt;
&lt;br /&gt;
==Set Up All the Automation==&lt;br /&gt;
*crontab -e&lt;br /&gt;
**00 21 * * * bash /root/scripts/rsnap.daily.sh&lt;br /&gt;
**01 21 * * 6 /usr/bin/rsnapshot weekly&lt;br /&gt;
**02 21 * * * nice -10 rsync -Hrax --delete --exclude *.gvfs --exclude /proc --exclude /sys --exclude /dev --exclude /media --exclude /mnt --exclude /home --exclude /service root@192.168.26.10:/* /home/houselian&lt;br /&gt;
**03 21 * * * nice -10 rsync -Hrax --delete --exclude *.gvfs --exclude /proc --exclude /sys --exclude /dev --exclude /media --exclude /mnt root@192.168.26.1:/* /home/porchlian&lt;br /&gt;
&lt;br /&gt;
==Restoring Porchlian/Houselian==&lt;br /&gt;
*reverse the rsync to a partition on a new drive, use a boot disk to install grub2 on that drive, and it will boot&lt;/div&gt;</summary>
		<author><name>Bob</name></author>
	</entry>
</feed>