On Wed, Mar 03, 2021 at 08:03:08AM +0000, Philippe DEMOUSTIER wrote:
> Hi all,
> 
> Following an issue on our servers, we lost approximatively 30% of our svn 
> database.
> Admin dump fails so we're trying to restore some data manually.
> 
> How can we restore data between SVN and ENDREP tags ?
> 
> DELTA 30834 15564 155
> SVN xxxxxxxxxxxxxxxxxxxxxx ENDREP
> 
> Many thanks for your help,
> Philippe

Hi Philippe,

I am afraid the short answer is that you will need to restore your repository
from backups. If you cannot do that, then you have now learned the hard way
that an important SVN repository needs to be backed up. The data is gone.

It is virtually impossible to restore the missing data manually. This data
is sometimes full text, sometimes deltified content. The only way to generate
equivalent data is to replay all the commits that have occurred throughout
repository history. The tool 'svnadmin load' can do this, provided you have
previously saved a dump file of the repository to backup storage when the
repository was still in a healthy condition.

Going forward, you should consider saving repository dump files to backup
storage, or saving backup copies of your repositories with tools such as
'svnadmin hotcopy' or 'svnsync'  For more information, see this page:
http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.backup

Regards,
Stefan

Reply via email to