<?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>link2caro &#187; Backup</title>
	<atom:link href="http://link2caro.net/tag/backup/feed/" rel="self" type="application/rss+xml" />
	<link>http://link2caro.net</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 09:41:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Backup your SVN repository with SVNSYNC</title>
		<link>http://link2caro.net/read/backup-your-svn-repository-with-svnsync/</link>
		<comments>http://link2caro.net/read/backup-your-svn-repository-with-svnsync/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 20:47:35 +0000</pubDate>
		<dc:creator>CA RO</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://link2caro.net/read/backup-your-svn-repository-with-svnsync/</guid>
		<description><![CDATA[In this article, I will tell you how to create a backup repository on your PC or your second server. First step: Create a new repository on your PC or your another server svnadmin create backup-repository Second step: Create a hook so as to give the repository the ability to change properties On Linux/Unix-like cat [...]]]></description>
			<content:encoded><![CDATA[<p>In this article, I will tell you how to create a backup repository on your PC or your second server.</p>
<p><span style="text-decoration: underline;">First step:</span> Create a new repository on your PC or your another server</p>
<p><span style="font-family: monospace; white-space: pre;">svnadmin create backup-repository</span></p>
<p><span style="text-decoration: underline;">Second step:</span> Create a hook so as to give the repository the ability to change properties</p>
<pre>
<b>On Linux/Unix-like</b>
</pre>
<pre>
<code>cat &lt;&lt;'EOF' &gt; <span style="font-family: Helvetica; white-space: normal;"><span style="font-family: monospace; white-space: pre;">backup-repository</span></span>/hooks/pre-revprop-change
#!/bin/sh
exit 0
EOF
</code>
</pre>
<pre>
Give the newly created file the permission of execution
</pre>
<pre>
chmod +w <span style="font-family: Helvetica; white-space: normal;"><span style="font-family: monospace; white-space: pre;">backup-repository</span></span>/hooks/pre-revprop-change
</pre>
<pre>
<b>On Windows</b>
</pre>
<pre>
Simply create an empty file named pre-revprop-change.bat in hooks directory (<span style="font-family: Helvetica; white-space: normal;"><span style="font-family: monospace; white-space: pre;">ackup-repository\</span></span>hooks\pre-revprop-change.bat)
</pre>
<pre>
<span style="text-decoration: underline;">Third step:</span> Initialization the newly created repository
</pre>
<pre>
Consult svnsync init --help for more information
</pre>
<pre>
<b>On Linux/Unix-like</b>
</pre>
<pre>
<code>svnsync init file://`pwd`/backup-repository http://svn.example.com/svn/ource-repository</code>
</pre>
<pre>
<b>On Windows</b>
</pre>
<pre>
<b><code><span style="font-weight: normal;">svnsync init file:///c:/full/path/to/backup-repository http://svn.example.com/source-repository</span></code></b>
</pre>
<pre>
<b><span style="font-weight: normal;"><span style="text-decoration: underline;">Forth step:</span> Sync them!</span></b>
</pre>
<pre>
<span style="font-weight: normal;"><code>svnsync sync file://`pwd`/backup-repository</code></span>
</pre>
<pre>
<span style="font-weight: normal;"><code>svnsync sync file:///c:/full/path/to/backup-repository</code></span>
</pre>
<pre>
<span style="font-weight: normal;">If you wish, you can hook this command to post-commit hook of the source-repository, with this hook, you will keep you backup-repository up-to-date <img src='http://link2caro.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </span>
</pre>
<pre>
<span style="font-weight: normal;"><b>On Windows</b></span>
</pre>
<pre>
<span style="font-weight: normal;"><b>On Linux/Unix-like</b></span>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://link2caro.net/read/backup-your-svn-repository-with-svnsync/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Database Caching 5/13 queries in 0.019 seconds using apc
Object Caching 378/391 objects using apc

Served from: link2caro.net @ 2012-02-08 23:26:09 -->
