<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Subversion backup</title>
	<atom:link href="http://www.randombugs.com/linux/subversion-backup.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.randombugs.com/linux/subversion-backup.html</link>
	<description>Just another Bastard Operator From Hell. Everything from *nix to programming</description>
	<lastBuildDate>Sat, 14 Jan 2012 18:33:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: How to get an SVN backup cron working? - Admins Goodies</title>
		<link>http://www.randombugs.com/linux/subversion-backup.html/comment-page-1#comment-2828</link>
		<dc:creator>How to get an SVN backup cron working? - Admins Goodies</dc:creator>
		<pubDate>Tue, 16 Aug 2011 14:02:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.randombugs.com/?p=365#comment-2828</guid>
		<description>[...] trying to get the script here working on my Ubuntu Server to backup the SVN repository via a [...]</description>
		<content:encoded><![CDATA[<p>[...] trying to get the script here working on my Ubuntu Server to backup the SVN repository via a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.randombugs.com/linux/subversion-backup.html/comment-page-1#comment-2761</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Tue, 14 Jun 2011 11:55:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.randombugs.com/?p=365#comment-2761</guid>
		<description>Know I don&#039;t have 9999 revisions - Most in a single repository is just under 3000.  I want something like this :

Initial backup file :
ACT.000000-000803.svndmp.gz

Subsequent commits :
ACT.000804-000804.svndmp.gz
ACT.000805-000805.svndmp.gz
ACT.000806-000806.svndmp.gz
.
.
.
So I did initial backups using -c 9999, then changed the backup to -c 1 - I was hoping that would leave me with files like above.

First run with -c 1 caused :
ACT.000000-000000.svndmp.gz
ACT.000001-000001.svndmp.gz - And so on for all revisions - ie initial backup file was completely ignored - I&#039;d say because -c parameter is used to determine if backup needs to be done or not.

Issue I have with using, for instance, -c 20 is that ( I think ) going to end up with something like this :

ACT.000000-000007.svndmp.gz
ACT.000000-000011.svndmp.gz
ACT.000000-000015.svndmp.gz as commits are done - i.e. revision backups are duplicated, which I don&#039;t want.

Reasons for -c 9999 followed by -c 1 is that a) No duplicated backups, &amp; b) minimal incremental backup every morning.

Only alternative I see at the moment is to start with -c 1 but that leaves loads of files for each repo - Might have no alternative though.

Thanks again

Sean</description>
		<content:encoded><![CDATA[<p>Know I don&#8217;t have 9999 revisions &#8211; Most in a single repository is just under 3000.  I want something like this :</p>
<p>Initial backup file :<br />
ACT.000000-000803.svndmp.gz</p>
<p>Subsequent commits :<br />
ACT.000804-000804.svndmp.gz<br />
ACT.000805-000805.svndmp.gz<br />
ACT.000806-000806.svndmp.gz<br />
.<br />
.<br />
.<br />
So I did initial backups using -c 9999, then changed the backup to -c 1 &#8211; I was hoping that would leave me with files like above.</p>
<p>First run with -c 1 caused :<br />
ACT.000000-000000.svndmp.gz<br />
ACT.000001-000001.svndmp.gz &#8211; And so on for all revisions &#8211; ie initial backup file was completely ignored &#8211; I&#8217;d say because -c parameter is used to determine if backup needs to be done or not.</p>
<p>Issue I have with using, for instance, -c 20 is that ( I think ) going to end up with something like this :</p>
<p>ACT.000000-000007.svndmp.gz<br />
ACT.000000-000011.svndmp.gz<br />
ACT.000000-000015.svndmp.gz as commits are done &#8211; i.e. revision backups are duplicated, which I don&#8217;t want.</p>
<p>Reasons for -c 9999 followed by -c 1 is that a) No duplicated backups, &amp; b) minimal incremental backup every morning.</p>
<p>Only alternative I see at the moment is to start with -c 1 but that leaves loads of files for each repo &#8211; Might have no alternative though.</p>
<p>Thanks again</p>
<p>Sean</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.randombugs.com/linux/subversion-backup.html/comment-page-1#comment-2760</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 14 Jun 2011 09:17:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.randombugs.com/?p=365#comment-2760</guid>
		<description>Probably you don&#039;t have 9999 revisions and the application is getting 1 instead. Look at how many revisions in in that SVN and use a smaller value.

Regards</description>
		<content:encoded><![CDATA[<p>Probably you don&#8217;t have 9999 revisions and the application is getting 1 instead. Look at how many revisions in in that SVN and use a smaller value.</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.randombugs.com/linux/subversion-backup.html/comment-page-1#comment-2759</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Tue, 14 Jun 2011 06:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.randombugs.com/?p=365#comment-2759</guid>
		<description>Hi - Tried on RHEL 5.5.

Stuck at something else though ( not script related ).

I recently migrated an existing Subversion installation to a new infrastructure and implemented automated ( daily ) backups as part of the migration.

I ran &quot;svn-backup-dumps --deltas -z -c 9999&quot; on the day of the migration to create full backups, then scheduled a daily backup as &quot;svn-backup-dumps --deltas -z -c 1&quot; - The idea being that only new commits would be backed up with the first backup as base.

What actually happened was that a backup file was created for every single revision ( new &amp; existing ) so I guess the &quot;-c&quot; parameter is used to calculate whether a backup for a revision exists or not.

Do you know of any way around this and do what I intended, i.e. a full backup with new commits only then incremantally added to that ?

This is my first attempt at automated Subversion backup so excuse the bit of ignorance - and thanks again for your sripts !

Sean</description>
		<content:encoded><![CDATA[<p>Hi &#8211; Tried on RHEL 5.5.</p>
<p>Stuck at something else though ( not script related ).</p>
<p>I recently migrated an existing Subversion installation to a new infrastructure and implemented automated ( daily ) backups as part of the migration.</p>
<p>I ran &#8220;svn-backup-dumps &#8211;deltas -z -c 9999&#8243; on the day of the migration to create full backups, then scheduled a daily backup as &#8220;svn-backup-dumps &#8211;deltas -z -c 1&#8243; &#8211; The idea being that only new commits would be backed up with the first backup as base.</p>
<p>What actually happened was that a backup file was created for every single revision ( new &amp; existing ) so I guess the &#8220;-c&#8221; parameter is used to calculate whether a backup for a revision exists or not.</p>
<p>Do you know of any way around this and do what I intended, i.e. a full backup with new commits only then incremantally added to that ?</p>
<p>This is my first attempt at automated Subversion backup so excuse the bit of ignorance &#8211; and thanks again for your sripts !</p>
<p>Sean</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.randombugs.com/linux/subversion-backup.html/comment-page-1#comment-2757</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 11 Jun 2011 03:23:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.randombugs.com/?p=365#comment-2757</guid>
		<description>Thanks for suggestions. On what distribution did you tried it ?

Regards</description>
		<content:encoded><![CDATA[<p>Thanks for suggestions. On what distribution did you tried it ?</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.randombugs.com/linux/subversion-backup.html/comment-page-1#comment-2756</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Fri, 10 Jun 2011 07:02:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.randombugs.com/?p=365#comment-2756</guid>
		<description>Second script doesn&#039;t work as on this site.

Changed it to :

#!/bin/bash

BACKUP_DIR=&quot;/Whatever/SVNBackupsWeekly&quot;
REPOSITORY_DIR=&quot;/var/www/svn&quot;

ls -Al --time-style=long-iso $REPOSITORY_DIR &#124; grep &#039;^d&#039; &#124; awk &#039;{print $8}&#039; &#124; while read line
do
    if [ ! -d $BACKUP_DIR&quot;/&quot;$line ]; then
        mkdir -p -v $BACKUP_DIR&quot;/&quot;$line
    fi
    REVISION=`cat $REPOSITORY_DIR&quot;/&quot;$line&quot;/db/current&quot; &#124; awk &#039;{print $1}&#039;`
    if [ -d $BACKUP_DIR&quot;/&quot;$line&quot;/&quot;$line&quot;-&quot;$REVISION ]; then
        echo &quot;Skipping Backup as Backup Already Exists : &quot;$line&quot; revision &quot;$REVISION
    else
	rm -rf $BACKUP_DIR&quot;/&quot;$line/*
        /usr/lib/subversion/tools/backup/hot-backup.py $REPOSITORY_DIR&quot;/&quot;$line $BACKUP_DIR&quot;/&quot;$line
    fi
 
done

The &quot; rm &quot; would not have worked ( syntax ) and would have always deleted backups, and

The &quot; ls -Al &quot; command had /home/svn/repository/ hardcoded as opposed to $REPOSITORY_DIR

Thanks a lot for the scripts though - Am fairly new to scripting and this page helped me get up to speed !</description>
		<content:encoded><![CDATA[<p>Second script doesn&#8217;t work as on this site.</p>
<p>Changed it to :</p>
<p>#!/bin/bash</p>
<p>BACKUP_DIR=&#8221;/Whatever/SVNBackupsWeekly&#8221;<br />
REPOSITORY_DIR=&#8221;/var/www/svn&#8221;</p>
<p>ls -Al &#8211;time-style=long-iso $REPOSITORY_DIR | grep &#8216;^d&#8217; | awk &#8216;{print $8}&#8217; | while read line<br />
do<br />
    if [ ! -d $BACKUP_DIR"/"$line ]; then<br />
        mkdir -p -v $BACKUP_DIR&#8221;/&#8221;$line<br />
    fi<br />
    REVISION=`cat $REPOSITORY_DIR&#8221;/&#8221;$line&#8221;/db/current&#8221; | awk &#8216;{print $1}&#8217;`<br />
    if [ -d $BACKUP_DIR"/"$line"/"$line"-"$REVISION ]; then<br />
        echo &#8220;Skipping Backup as Backup Already Exists : &#8220;$line&#8221; revision &#8220;$REVISION<br />
    else<br />
	rm -rf $BACKUP_DIR&#8221;/&#8221;$line/*<br />
        /usr/lib/subversion/tools/backup/hot-backup.py $REPOSITORY_DIR&#8221;/&#8221;$line $BACKUP_DIR&#8221;/&#8221;$line<br />
    fi</p>
<p>done</p>
<p>The &#8221; rm &#8221; would not have worked ( syntax ) and would have always deleted backups, and</p>
<p>The &#8221; ls -Al &#8221; command had /home/svn/repository/ hardcoded as opposed to $REPOSITORY_DIR</p>
<p>Thanks a lot for the scripts though &#8211; Am fairly new to scripting and this page helped me get up to speed !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://www.randombugs.com/linux/subversion-backup.html/comment-page-1#comment-2743</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 31 May 2011 07:07:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.randombugs.com/?p=365#comment-2743</guid>
		<description>Awesome tips! It&#039;s really important for me to backup my files since I have numerous important research files that I can&#039;t live without. I will surely try your recommendations and see how it goes.</description>
		<content:encoded><![CDATA[<p>Awesome tips! It&#8217;s really important for me to backup my files since I have numerous important research files that I can&#8217;t live without. I will surely try your recommendations and see how it goes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chiliemae</title>
		<link>http://www.randombugs.com/linux/subversion-backup.html/comment-page-1#comment-2720</link>
		<dc:creator>chiliemae</dc:creator>
		<pubDate>Wed, 25 May 2011 13:26:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.randombugs.com/?p=365#comment-2720</guid>
		<description>Brilliant! That’s the right way to go. Nice blog you know what? I love the information you had, it really help me a lot. You made it look easy and you are on the right track. I&#039;m happy to see you working on that. Now, I can figure it out. You haven&#039;t missed a thing. 
Good work. You’re doing a right job,</description>
		<content:encoded><![CDATA[<p>Brilliant! That’s the right way to go. Nice blog you know what? I love the information you had, it really help me a lot. You made it look easy and you are on the right track. I&#8217;m happy to see you working on that. Now, I can figure it out. You haven&#8217;t missed a thing.<br />
Good work. You’re doing a right job,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harold</title>
		<link>http://www.randombugs.com/linux/subversion-backup.html/comment-page-1#comment-2611</link>
		<dc:creator>Harold</dc:creator>
		<pubDate>Fri, 22 Apr 2011 04:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.randombugs.com/?p=365#comment-2611</guid>
		<description>Hey guys, thanks for the information you shared herein. I was actually looking for ways to manually do full backup.

@millibyte: thank you, you have a brilliant mind.

@admin: thanks for this post, it&#039;s helping me a lot.

Harold
My Blog: &lt;a href=&quot;http://www.bwiairportparkingcoupons.com/&quot; rel=&quot;nofollow&quot;&gt;BWI Airport Parking Coupons&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hey guys, thanks for the information you shared herein. I was actually looking for ways to manually do full backup.</p>
<p>@millibyte: thank you, you have a brilliant mind.</p>
<p>@admin: thanks for this post, it&#8217;s helping me a lot.</p>
<p>Harold<br />
My Blog: <a href="http://www.bwiairportparkingcoupons.com/" rel="nofollow">BWI Airport Parking Coupons</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to get an SVN backup cron working?</title>
		<link>http://www.randombugs.com/linux/subversion-backup.html/comment-page-1#comment-647</link>
		<dc:creator>How to get an SVN backup cron working?</dc:creator>
		<pubDate>Sun, 21 Nov 2010 07:47:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.randombugs.com/?p=365#comment-647</guid>
		<description>[...] trying to get the script here working on my Ubuntu Server to backup the SVN repository via a [...]</description>
		<content:encoded><![CDATA[<p>[...] trying to get the script here working on my Ubuntu Server to backup the SVN repository via a [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

