<?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>Perspicacity &#187; Technical</title>
	<atom:link href="http://pers.picacio.us/jem/category/technical/feed/" rel="self" type="application/rss+xml" />
	<link>http://pers.picacio.us/jem</link>
	<description>A site for insights</description>
	<lastBuildDate>Sat, 23 Dec 2006 10:35:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Rsync: Website Backups Made Easy</title>
		<link>http://pers.picacio.us/jem/2006/12/23/rsync-website-backups-made-easy/</link>
		<comments>http://pers.picacio.us/jem/2006/12/23/rsync-website-backups-made-easy/#comments</comments>
		<pubDate>Sat, 23 Dec 2006 10:32:06 +0000</pubDate>
		<dc:creator>Jem</dc:creator>
				<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://pers.picacio.us/jem/2006/12/23/rsync-website-backups-made-easy/</guid>
		<description><![CDATA[
Greg has been persistently encouraging me to post in this space a few of the useful technical tidbits I have figured out over the years. So, for those who might find it interesting, here is a simple rsync flashcard I made some time ago when I was doing a bit of Sys-op work on our [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://ideasfordozens.com">Greg</a> has been persistently encouraging me to post in this space a few of the useful technical tidbits I have figured out over the years. So, for those who might find it interesting, here is a simple rsync flashcard I made some time ago when I was doing a bit of Sys-op work on our (currently hibernating) website, <a href="http://mfdz.com">Music For Dozens</a>.
</p>
<p>
If you ever want to backup your website (or any other internet-accessible files), and assuming you have access to the UNIX command line shell on the host machine, <a href="http://samba.anu.edu.au/rsync/">rsync</a> is the way to go. According to it&#8217;s homepage, rsync is &#8220;an open source utility that provides fast incremental file transfer.&#8221; In other words, it is the perfect tool for quickly copying a large number of files from one place to another. It can tunnel its data through ssh, which is generally considered <i>de rigueur</i> for security on the net, and is quite fast (particularly when making backups, as it only [incrementally] transfers the data that has changed since the last transfer).
</p>
<p>
To use rsync, you will need to log in to the machine you are trying to preserve (preferably using ssh for safety&#8217;s sake). Then, type something like this:</p>
<pre>
rsync -avz -e ssh relative/path/to/dir user@11.11.11.111:/remote/target/folder
</pre>
<p>When typing this UNIX incantation to invoke rsync, you will need to have at hand </p>
<ul>
<li>the location of the files or folders you want to send [indicated here as "relative/path/to/dir"],
<li>your backup machine&#8217;s IP address (or domain name [for example: "11.11.11.111"]),
<li>a user account name on that machine ["user"],
<li>the appropriate password (which rsync will ask you in a few seconds after you hit &#8220;return&#8221;, assuming you do not have some better way of making the two computers trust each other over ssh),
<li>and the full path of where you want to put the backup files ["/remote/target/folder"].
</ul>
<p>(Replace the information in [brackets] with the real stuff or you will be out of luck!)
</p>
<p>Remember to include that pesky at sign (@) between the remote username and remote machine address, as well as the even-easier-to-overlook colon (:) between that address and the data&#8217;s destination path. Also, don&#8217;t put any slashes (/) at the end of these locations, even if you are sending folders instead of files (rsync has no trouble with folders; you don&#8217;t have to compress the directory with zip or tar before sending it).
</p>
<p>
Here is the command line template as a (hopefully better annotated) flashcard, fully suitable for framing:</p>
<p><a href="http://pers.picacio.us/jem/wp-content/uploads/2006/12/rsync-flashcard.png" target="new window"><img src="http://pers.picacio.us/jem/wp-content/uploads/2006/12/rsync-flashcard.png" width="100%" alt="rsync flashcard"></a><br />
(My thanks to Greg for making this image suitable for public distribution and for contributing a good chunk of the explanatory language.)</p>]]></content:encoded>
			<wfw:commentRss>http://pers.picacio.us/jem/2006/12/23/rsync-website-backups-made-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
