1

I'm running svnsync as a background process,

nohup svnsync synchronize svn://www.example.com/repos &

But sometimes the source SVN repository / server crashes. Can I set svnsync or configure something that would periodically retry the sync?

Note that:

  1. svnsync fails to connect with the error message:

svnsync: PROPFIND request failed on '/repos/abc'

svnsync: PROPFIND of '/repos/abc': could not connect to server (http://a.bc.de)

  1. Locks are left in place that need to be cleared with the following command

svn pdel --revprop -r 0 svn:sync-lock --username myusername svn://www.example.com/repos

Raghuram
  • 51,854
  • 11
  • 110
  • 122
siliconpi
  • 8,105
  • 18
  • 69
  • 107
  • There does not appear to be a solution.... in any case I manually checked the process over several days and restarted it whenever it broke... – siliconpi Jan 28 '11 at 02:12

1 Answers1

1

The way you're running this means that it'll stop after it's done, so it's by no means continuous.

I would use a cron job to repeatedly call svnsync at intervals. I wouldn't recommend cleaning the locks automatically, because they're there for a good reason.

In what way does the server/repository crash? Try running svnadmin verify on the repository.

Sander Rijken
  • 21,376
  • 3
  • 61
  • 85