<?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>olivetalks &#187; rsnapshot</title>
	<atom:link href="http://www.olivetalks.com/tag/rsnapshot/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.olivetalks.com</link>
	<description>The Olive has arrived and it has things to say…</description>
	<lastBuildDate>Tue, 20 Jul 2010 06:27:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Automatic backup of Windows computers using Linux</title>
		<link>http://www.olivetalks.com/2008/02/21/automatic-backup-of-windows-computers-using-linux/</link>
		<comments>http://www.olivetalks.com/2008/02/21/automatic-backup-of-windows-computers-using-linux/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 09:05:32 +0000</pubDate>
		<dc:creator>ZoltarStark</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[rsnapshot]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.olivetalks.com/2008/02/21/automatic-backup-of-windows-computers-using-linux/</guid>
		<description><![CDATA[Learn how to setup automatic backups of Windows computers using only free Linux software. The solution stores the backups on a Linux server using rsnapshot, samba and autofs.]]></description>
			<content:encoded><![CDATA[<p>Quite a common setup for people is to use Windows PCs with Linux servers. This configuration allows you to benefit from a stable, standard based and secure server platform which doesn&#8217;t burn a whole in your pocket while letting the users continue operating the tools they know. A usual solution is to run <a href="http://www.samba.org/">samba</a> on a Linux server which can then act as a Windows Domain Controller. This allows Windows clients to log on to the domain and access file and printer shares on the server. Of course you can also have Linux clients integrated in that configuration but this is not going to be the subject of this article.</p>
<p>Usually the Windows PCs store the user profiles on the server. Backing the user profiles can then be done as part of backing up the whole server. You might have some other files though which are not part of the user profile. Backing up these files can be easily done using <a href="http://www.rsnapshot.org/">rsnapshot</a> and <a href="http://wiki.autofs.net/">autofs</a>.</p>
<p>We&#8217;ll use autofs to setup file sharing between the Windows PCs and the Linux server. This is especially useful for computers which are not always connected to the network like laptops, although people do turn off their desktops as well from time to time. What autofs allows us to do is to activate file sharing only when it&#8217;s needed for the purpose of doing a backup.</p>
<p>Performing the actual backup will be done using rsnapshot. This tool, which I already mentioned in a <a href="/2008/02/08/thats-how-ive-learned-to-like-jazz/">previous post</a>, allows space efficient backups which are stored incrementally while offering ease of access usually associated with full backups.</p>
<p>Before setting up autofs we need to <a href="http://www.balliol.ox.ac.uk/comp/shares/index.asp">create a network share</a> on the Windows PC. Remember the user and the password since we&#8217;ll need them later on. In this article I&#8217;m going to assume the user name is <em>backup</em> and the password is <em>secret</em> but you should use something more difficult to guess depending on your security requirements. I&#8217;m also assuming the Windows domain is called <em>company</em>. On the Linux server you then need to make sure you&#8217;ve got <em>autofs</em> installed. Installation of <em>autofs</em> is not covered here but usually it&#8217;s as simple as executing <code>yum install autofs</code>. You need to edit <code>/etc/auto.master</code> file and add this line</p>
<p><code>/smb /etc/auto.windows --timeout=60</code></p>
<p>Then you create the file <code>/etc/auto.windows</code> containing the following, in a single line:</p>
<p><code><em>&lt;share&gt;</em> -fstype=smbfs,<br />
credentials=/etc/auto.windows.<em>&lt;credentials file&gt;</em>,<br />
uid=<em>&lt;user&gt;</em>,gid=<em>&lt;group&gt;</em>,<br />
fmask=0755,dmask=0755  ://<em>&lt;windows PC&gt;</em>/<em>&lt;network share&gt;</em></code></p>
<p>This must be written on a single line, with no separating spaces starting from <code>-fstype</code> to <code>dmask=0755</code></p>
<p><code>&lt;share&gt;</code> is the name of directory where you want to mount the network share from Windows PC.</p>
<p><code>/etc/auto.windows.&lt;credentials file&gt;</code> is the name of file where you store the user name and password needed to access the network share on Windows PC. In our case it will look like this:</p>
<p><code>username = backup<br />
password = secret<br />
domain = company<br />
</code></p>
<p>After these preparations it&#8217;s time to tell the <em>autofs</em> daemon about these changes by executing <code>service autofs reload</code> or a corresponding command. You should be able now to see that the network share gets automatically mounted when you execute <code>ls /smb/&lt;share&gt;</code>. After 60 seconds the share will be unmounted.</p>
<p>Now the last part &#8211; setting up rsnapshot. Just follow the <a href="http://www.rsnapshot.org/howto/1.2/rsnapshot-HOWTO.en.html">instructions</a> for rsnapshot as if the directory <code>/smb/&lt;share&gt;</code> was local. Thanks to <em>autofs</em>, rsnapshot doesn&#8217;t need to know that it&#8217;s really on a different computer running Windows. Remember to set up a cron job if this is your first time you&#8217;re using <em>rsnapshot</em>.</p>
<p>That&#8217;s it. You&#8217;ve configured an automatic backup of a Windows computer using Linux. You can repeat this procedure on further Windows clients.</p>
<p>P.S. Another approach is described <a href="http://www.stillnetstudios.com/2006/12/09/snapshot-backups-howto/">here</a> but it has the drawback that it requires installing additional software on the Windows PCs.</p>
<hr align="left" width="20%" /> <a href="/category/computers/feed" title="rss feed to post"><img src="/wp-content/uploads/2008/01/feed-icon-14x14.png" alt="rss feed to post" /></a> Subscribe to the Computers posts of olivetalks, if you found this article interesting, thank you!</p>
<h3>Related post(s)</h3><ul class="related_post"><li><a href="http://www.olivetalks.com/2009/06/24/skype-40-for-windows-is-out-pros-and-cons-compared-with-linux-skype-20/" title="Skype 4.0 for Windows is out: Pros and cons (compared with Linux Skype 2.0) ">Skype 4.0 for Windows is out: Pros and cons (compared with Linux Skype 2.0)  (1)</a></li><li><a href="http://www.olivetalks.com/2008/06/17/too-much-success-and-popularity/" title="Too much success and popularity?">Too much success and popularity? (0)</a></li><li><a href="http://www.olivetalks.com/2008/02/08/thats-how-ive-learned-to-like-jazz/" title="That&#8217;s how I&#8217;ve learned to like Jazz">That&#8217;s how I&#8217;ve learned to like Jazz (2)</a></li><li><a href="http://www.olivetalks.com/2009/02/21/ups-on-centos-with-selinux-part-2/" title="Setting up UPS on CentOS 5.2 with SELinux, part 2">Setting up UPS on CentOS 5.2 with SELinux, part 2 (1)</a></li><li><a href="http://www.olivetalks.com/2009/02/19/ups-on-centos-with-selinux-part-1/" title="Setting up UPS on CentOS 5.2 with SELinux, part 1">Setting up UPS on CentOS 5.2 with SELinux, part 1 (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.olivetalks.com/2008/02/21/automatic-backup-of-windows-computers-using-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>That&#8217;s how I&#8217;ve learned to like Jazz</title>
		<link>http://www.olivetalks.com/2008/02/08/thats-how-ive-learned-to-like-jazz/</link>
		<comments>http://www.olivetalks.com/2008/02/08/thats-how-ive-learned-to-like-jazz/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 21:18:19 +0000</pubDate>
		<dc:creator>ZoltarStark</dc:creator>
				<category><![CDATA[Computer accessories]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[Product reviews]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[enermax jazz]]></category>
		<category><![CDATA[external hard disk]]></category>
		<category><![CDATA[external USB drive]]></category>
		<category><![CDATA[home file server]]></category>
		<category><![CDATA[rsnapshot]]></category>
		<category><![CDATA[SATA]]></category>

		<guid isPermaLink="false">http://www.olivetalks.com/2008/02/08/thats-how-ive-learned-to-like-jazz/</guid>
		<description><![CDATA[I needed an external hard disk for backing up my home file server. I decided to get separately a USB enclosure supporting SATA-II disks and install a 500 GB hard disk inside. Why not get the whole package &#8211; i.e. a closed box with a USB cable and disk already inside? Let me explain. Separate [...]]]></description>
			<content:encoded><![CDATA[<p>I needed an external hard disk for backing up my home file server. I decided to get separately a USB enclosure supporting SATA-II disks and install a 500 GB hard disk inside. Why not get the whole package &#8211; i.e. a closed box with a USB cable and disk already inside? Let me explain. Separate enclosure means I can remove the disk when transporting it to an off-site location, that saves me over 0.5 kg of weight in my backpack. It might not be much but if you travel already overloaded like I usually do then it does matter. Second reason is that it&#8217;s difficult to know what kind of disk is inside one of those closed boxes. With my setup I know exactly what disk it is. As an added bonus I can easily connect it directly inside the file server if I need to (for example if the enclosure died) because both the enclosure and the file server use SATA-II interface.</p>
<p>After doing some research I decided to purchase <a href="http://www.amazon.co.uk/ENERMAX-EB307ES-B-JAZZ-Drive-Enclosure/dp/B000ZNQYMU/ref=sr_1_2?ie=UTF8&amp;s=gateway&amp;qid=1202503767&amp;sr=8-2" rel="external nofollow">Enermax EB307S-B Jazz</a>. It just arrived today (thanks <a href="http://www.alternate.de/html/product/details.html?articleId=236855&amp;showTecData=true#techData" rel="external nofollow">alternate.de</a> for a quick delivery). As advertised the enclosure allows a very quick installation. There&#8217;s no need to use any tools. Simply unlock the enclosure, slide out the cover and lift it. Now you can install the hard disk &#8211; this takes another 15 seconds. Replace the cover, lock it and that&#8217;s it. Now just connect power and the USB cable. All this took barely any longer than if the disk was already installed.</p>
<p>Enermax Jazz has a very nice design. Brushed aluminum housing with steel mesh provides very good cooling and sturdiness. It also looks cool since you can see the disk inside. Because the casing is a mesh it doesn&#8217;t need a fan which makes it suitable for quiet environments. But be careful with liquids &#8211; if you spill anything on the enclosure you will probably fry your data!</p>
<p>After connecting the enclosure to the file server I&#8217;ve formatted it. The file server runs Linux so I&#8217;ve used ext3 file system but you could use this hardware also with a Mac or Windows machine. Then another couple of minutes to decide what to backup (more or less everything) and I&#8217;ve started the copy process. It&#8217;s been running for the last 40 minutes and so far 47 GB have been transferred to the external disk. 120 GB more to go&#8230; I&#8217;m using <a href="http://www.rsnapshot.org/">rsnapshot</a> to perform the backups. It&#8217;s a really nice tool I&#8217;ve recently discovered. It creates regular snapshots of the directories you tell it to monitor. To save space it uses hard links to store files which haven&#8217;t changed since the previous snapshot. Usually that means that your backup space requirements are only about 20-30% more than the amount of data you have, even if you want to have a history of your files going back a few months.</p>
<p>I like Jazz.</p>
<p>Btw, if anybody from UK wants to buy this enclosure I&#8217;d suggest to check first if you can get it from a shop on the continent. Price will be much lower.</p>
<hr align="left" width="20%" /> <a href="/category/computers/feed" title="rss feed to post"><img src="/wp-content/uploads/2008/01/feed-icon-14x14.png" alt="rss feed to post" /></a> Subscribe to the Computers posts of olivetalks, if you found this article interesting, thank you!</p>
<h3>Related post(s)</h3><ul class="related_post"><li><a href="http://www.olivetalks.com/2008/02/21/automatic-backup-of-windows-computers-using-linux/" title="Automatic backup of Windows computers using Linux">Automatic backup of Windows computers using Linux (3)</a></li><li><a href="http://www.olivetalks.com/2009/01/17/mass-download-google-docs-part3/" title="How to backup / download more than one Google doc at a time (part 3)">How to backup / download more than one Google doc at a time (part 3) (0)</a></li><li><a href="http://www.olivetalks.com/2009/01/16/mass-download-google-docs-part2/" title="How to backup / download more than one Google doc at a time (part 2)">How to backup / download more than one Google doc at a time (part 2) (0)</a></li><li><a href="http://www.olivetalks.com/2009/01/15/mass-download-google-docs-part1/" title="How to backup / download more than one Google doc at a time (part 1)">How to backup / download more than one Google doc at a time (part 1) (0)</a></li><li><a href="http://www.olivetalks.com/2008/07/06/internet-is-the-extension-of-my-brain/" title="Internet is the extension of my brain">Internet is the extension of my brain (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.olivetalks.com/2008/02/08/thats-how-ive-learned-to-like-jazz/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
