On 5/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Tero: > > I'm not sure if it's a Linux issue, but I back up the > repository directories directly. I'm not sure what issue > you are seeing to warrant the statement, "Note that just > copying repository files doesn't work properly," - as that > is what I've been doing for years without any problems. I > would like to hear what issues you are seeing so that I may > avoid them in the future.
The best reason to avoid this is b/c that's what the Subversion developers say (http://svnbook.red-bean.com/en/1.1/ch05s03.html but you'll have to read through a lot). A lot of the initial discussion about the dangers of simply copying the repository relate to the earlier versions of Subversion that used BerkeleyDB for managing the repository. And we all (should) know that a copy of a db made using a"copy" command is going to be problematic. Now that Subversion uses FSFS (filesystem storage) by default, the whole craziness w/ BDB is no longer an issue unless you choose to run BDB as your repository storage engine. All that aside, but BDB and FSFS have specific orders in which files need to be copied to ensure an accurate backup. This really isn't much of an issue if access to the repository is disabled during a vanilla copy/backup, but I'd suggest avoiding the hassle and using either the builtin svnadmin hotcopy or the even more reliable hot-backup.py http://subversion.tigris.org/tools_contrib.html#backup If you're using FSFS (the default) and have a decent window for maintenance (eg at night), I'd suggest simply using svnadmin dump to dump out a simple text-based replay of eveything. You can do a full one weekly and an incremental one daily or whatever makes sense. Note that this is less useful as you add more and bigger binary files to a SVN repository (eg lot of videos) since the corresponding output files will be pretty large. I like rsync in that scenario to increase the speed of the process. One quick example script from TextDrive (a host) which can be adapted is here http://textsnippets.com/posts/show/587 which shows how to rsync your FSFS svn repository to a remote server over SSH. <shameless plug> I'm teaching a course on Subversion, Ant, and Selenium at CFUnited 2007. Come out and turbocharge your development process! </shameless plug> > > Steve Brownlee > http://www.fusioncube.net/ > > ----- Original Message Follows ----- > From: "Tero Pikala" <[EMAIL PROTECTED]> > To: CF-Talk <[email protected]> > Subject: RE: Subversion... CF's built-in webserver ... Can I > do this? > Date: Mon, 14 May 2007 17:36:32 +0100 > > > I'm running following script daily to get backup copies > > out of subversion server (which is Ubuntu 6.10 running in > > VMware). Note that just copying repository files doesn't > > work properly; you need to make hot copy or dump of each > > repository instead. > > > > ------------ > > (all variables are set before this) > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:278087 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

