[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion backup

From: Campbell Allan <campbell.allan_at_sword-ciboodle.com>
Date: Tue, 5 May 2009 11:41:01 +0100

On Tuesday 05 May 2009, Irfan Sayed wrote:
> there will be a proper communication well in advance will be sent to
> development community mentioning the backup window with mentioning that
> access to repository will be unavailable for any write / update operation
> during backup so that they will also aware that daily backup happene
> between specific time frame and no one will try to access svn repo.
>
> if i am taking daily full backup then that backup shud be full proof
> including all the commit operation. in my daily full backup i dont want any
> commit operation left unbackedup. if backup is getting started at 11.00 PM
> then all the commit operation till 10.59 PM shud be there in backup with
> full data integrity.
>
> this is what i want. because of this only i want to lock the repo. i red
> the svbook but as per design as of now svn only gives file level locking
> mechanism and not dir. level lock mechnaism so i cant use "svn lock" is
> this correct???
>
> as there is no any full proof lock mechanism on repo level , i dont have
> other option but to stop the apache service to disable the svn URL access.
>
> please advice.
>
> Regards
> Irfan.
>

If it is just a case of specifying exactly what is in the dump, ie. you want
to have every commit up to the point the backup starts and nothing after then
you can use the revision number in the dump command.

REV=`svnlook youngest /path/to/repository`
nice -n 5 svnadmin dump -r 0:$REV --delta /path/to/repository > dump

If commits occur in the time it is backing up they aren't in the dump file.
Then you have the option to include them by simply appending them
(--incremental option) or leave them out, your choice.

Campbell
__________________________________________________________________________________
Sword Ciboodle is the trading name of ciboodle Limited (a company
registered in Scotland with registered number SC143434 and whose
registered office is at India of Inchinnan, Renfrewshire, UK,
PA4 9LH) which is part of the Sword Group of companies.

This email (and any attachments) is intended for the named
recipient(s) and is private and confidential. If it is not for you,
please inform us and then delete it. If you are not the intended
recipient(s), the use, disclosure, copying or distribution of any
information contained within this email is prohibited. Messages to
and from us may be monitored. If the content is not about the
business of the Sword Group then the message is neither from nor
sanctioned by us.

Internet communications are not secure. You should scan this
message and any attachments for viruses. Under no circumstances
do we accept liability for any loss or damage which may result from
your receipt of this email or any attachment.
__________________________________________________________________________________
Received on 2009-05-05 12:41:58 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.