On Wed, 8 Jan 2025 11:16:08 +0100, Daniel Sahlberg <daniel.l.sahlb...@gmail.com> wrote:
>Den ons 8 jan. 2025 kl 10:59 skrev Bo Berglund <bo.bergl...@gmail.com>: > >> If I create a new empty target repository on the mirror server and >> configure it >> to be used for syncing, then how long will it take to do the initial sync? >> > >> The problem is that it is VERY big (14 GB) and the server and mirror are >> separated by the Atlantic so all comm need to be going through the internet >> etc... >> > >That's not "very big" with today's measures (at least unless you are paying >per GB transfered). I have successfully synced TortoiseSVN's repo - it is >"only" 1.4 GB but on the other hand has almost 30'000 (small) revisions. It >took the better part of a day, but that is because the sync does one >revision at a time. Since you have fewer but bigger revisions, I would >suspect it to take a lot less time. I know that there are binaries (excutable files) stored along with the sources so those are one big item at a time, I guess... >It sounds like a good plan to make a new repository and re-initialize the >sync. You probably put yourself in this situation by trying to load a dump >on the backup server. Maybe if you look at the properties on -r0 (as >described in the SVN book), you can make Subversion "think" that both >repositories are equal (which they SHOULD be if you made everything >correct). Regarding repository names, are they stored anywhere internally in the repo or is it just the top level directory name? If it is "just a name" then I should be able to rename the existing mirror dir and then create a new "pc" repo destined to be set to become a synced repo according to the directions in the svnbook. And then presumably the sync will go from there. One item I am not sure of is the "syncuser" password, it seems to be in use yet I see nothing about it in the batch command used and I don't even remember it now since I originally set it up back in 2018... Is syncuser a repository local user or is it an svn user in general? > >> >> Is it not possible to load a synced repo using an initial dump file from >> the >> source and so load the mirror locally without having to worry about >> connectivity >> issues during the massive start operation? >> > >I'm guessing here but I think that it would work. But I'd probably save >myself some trouble and let svnsync do the work. It is "only" a matter of >bandwidth and waiting for the sync to complete, whereas fiddling with a >dump file means man-hours for you. Right, I have already spent a lot of hours trying to figure out the repercussions of the server crash... I have a 1000/1000 MBPS fiber connection here but I believe the company connection is a bit slower. I worried about any interruptions during the first sync potentially destroying the new repo... > >Even if you loose connectivity again (and end up with a stale lock), you >should be able to steal the lock and re-start from where it stopped - you >don't need to do this in one big operation. > Hopefully it won't stup... Thanks! -- Bo Berglund Developer in Sweden