Operation Flow:1. Build the repository on the machine to be backed up: svnadmin Create Test 2, go to hooks directory: CD TEST/HOOKS/3, create Pre-revprop-change file: CP Pre-revprop-change.tmpl Pre-revprop-change 4, modify Pre-revprop-change permissions: CHOMD +x pre-revprop-change
5. Modified File: VI Pre-revprop-change
For echo "Changing revision properties other than Svn:log is prohibited" >2
Exit 0 (1 modified to 0) 6, synchronous preliminary:
Svnsync
SVN server backup
Last night, I suddenly came up with a question: What should I do if the hard disk Of My SVN server is broken? Isn't the code all lost,
I checked it online and found many ways to back up the svn server. I tried to synchronize the code in the code library with Sync:
SVN server system:
RedHat 6.4-64
SVN version:
1.6
SVN source code server address:
SVN: // 192.168.10.1/
SVN target directory:
SVN: // 192.168.10.2/
First, install svn on the 192.168.30.2 server, create a version li
Svnsync synchronizes and backs up svn version libraries. Everyone knows that code is a life for the entire IT company. Most small and medium-sized companies use svn for version control due to personnel level issues, therefore, version database backup of svn is crucial. Here I will introduce svnsync to implement version Database Synchronization of svn, in addition, the master database whose process is script
The Svnsync can easily synchronize another source SVN version to the specified repository, providing convenience for multi-version library applications.Example: (The repository is stored under directory/svn/)Source Version library: svn://196.168.0.1/testa Sync User:sync_source Password:123456Target repository: svn://196.168.0.2/testb Sync User:sync Password:123456The source repository is used to develop applications such as edit submissions, and the t
For example, svnsync is used to synchronously back up svn of two machines. (Take linux server to windows server as an example) Name of the project to be synchronized: source_svnsvn version 1. 4. above source Directory: svn: 192.168.16.199source _ svn synchronization target directory: http: Destination IP: 8080source_svnbak method: 1. If
ExampleSvnsyNcSynchronous backup of two machinesSvn. (Take linux server to windows server as an example)
Project
Svn uses the svnsync command to run the hot standby source Directory: svn: // srcIP/taobaotop target directory: svn: // desIP/taobaotop step: www.2cto.com if the target directory has the same project, clear and recreate an empty project, for example, mkdir-p/data/svndata/taobaotop svnadmin create/data/svndata/taobaotop 2. start svn svnserve-d-r/data/svndata/3. run cd/data/svndata/taobaotop/hooks cp pre-revprop-change.tmpl pre-revprop-change vi pre-rev
Svnsync to achieve a synchronous backup of the repository experimental environment: a,172.17.201.243 (Master) b,172.17.201.88 (preparation) project requirements, production environment requires SVN server to implement the hot standby mechanism, so I think of the SVN svnsync mechanism, The operation flow is as follows: 1. Build the repository on the machine you want to back up (172.17.201.88)Mkdir-p/home/svn
SVN service with svnsync command dual-machine hot standbySOURCE directory: Svn://srcip/taobaotopTarget directory: Svn://desip/taobaotopSteps:Www.ahlinux.comIf the target directory has the same item, clear it and re-establish the empty project, for example:Mkdir-p/data/svndata/taobaotopSvnadmin Create/data/svndata/taobaotop2. Start the SVN from the machineSvnserve-d-r/data/svndata/3. Perform on-board:Cd/data/svndata/taobaotop/hooksCP Pre-revprop-change
-amalgamationconfigure:error:subversion requires SQLiteAddressing the dependency approach# tar zxf sqlite-amalgamation-3.6.17.tar.gz# unzip Sqlite-amalgamation-3071501.zip # CP sqlite-amalgamation-3071501/* S qlite-3.6.17# CD sqlite-3.6.17/#./configure--prefix=/usr/local/svn/sqlite# make make install5. Install SVN# tar zxf subversion-1.8.10.tar.gz# cd subversion-1.8.10#./configure--prefix=/usr/local/svn/subversion--with-apxs=/ Usr/local/svn/apache/bin/apxs--with-apr=/usr/local/svn/apr/bin/apr-1
Image version library using svnsync
From: http://seraya.iyublog.com/2010/03/15/%E4%BD%BF%E7%94%A8svnsync%E9%95%9C%E5%83%8F%E7%89%88%E6%9C%AC%E5%BA%93/
Terms
To better discuss svnsync without confusion, we should establish some terms before continuing:
MASTER: the active read/write version library to be synchronized through svnsync.
Mirror: the
From: http://spiritfrog.iteye.com/blog/448578 + http://magnet2008.iteye.com/blog/586578
Backup Policy
================= Svn backup generally adopts three methods:
1) svnadmin dump
2) svnadmin hotcopy
3) svnsync.
Note: svn backup should not adopt the normal file copy method (unless you pause the database during Backup), such as the copy command and rsync command.I used the rsync command for incremental and full backup. During the quarterly backup che
(The example in this article is implemented based on FreeBSD/Linux, and you need to modify it on your own in the Windows environment)An important mission of configuration management is to ensure data security and prevent the catastrophic consequences of the failure to recover data due to disk damage or misoperations on the server. Therefore, it is very important to develop a complete backup policy.
Generally, the backup policy should specify the following parts: Backup Frequency, backup mode, ba
disaster recovery is fast, and if the SVN service is already set up on the backup machine and does not even need to be restored, simply configure it to switch to the backup repository.The disadvantage is: more expensive hard disk, need to have a large hard disk support (my backup machine has 1TB space, hehe).The third kind of svnsync is actually making 2 mirror libraries, and when one is broken, you can quickly switch to another. However, this featur
to migrate the content under Svn://192.168.1.201/rd, as follows:1. Perform dump operation on source server 192.168.1.200Note that all of the directories in the repository are actually backed up and need to be filtered using the Svndumpfilter command to filter the required directories at load time.Svnadmindumpd:\subversion\svnworkspace\bak>svn_all_20080520.dump2, create the svnbackuprepository on the 192.168.1.201Svnadmincreated:\subversion\svnbackup3, download a Windows version of the GNU tool
very slow, backup time, recovery more time-consuming, not conducive to rapid disaster recovery.It is recommended that you use this backup method when the number of versions is smaller.The second Svnadmin hotcopy original design objective is not to be used for backup, only a full-volume copy can not be incremental backup;The advantage is that the backup process is fast and disaster recovery is fast, and if the SVN service is already set up on the backup machine and does not even need to be resto
, then the process of dump will be very slow, backup time, recovery more time-consuming, not conducive to rapid disaster recovery.It is recommended that you use this backup method when the number of versions is smaller.The second Svnadmin hotcopy original design objective is not to be used for backup, only a full-volume copy can not be incremental backup;The advantage is that the backup process is fast and disaster recovery is fast, and if the SVN service is already set up on the backup machine
For security reasons, the SVN server can do real-time backups in addition to regular full-scale backups and incremental backups, if conditions permit.This requires 2 machines, one is master server and the other is mirror server. Master Service, mirror not external service or set read-only (except for synchronization account can write outside)In addition, if the master load is relatively high, some read-only applications can be set to read from mirror, such as Jenkins compilation. (need to ensure
svnsync:subversion a good tool for backing up the repository
From svn Knowledge BaseRevision as of 22:35 February 19, 2008; View Current revision
←older Revision | Newer Revision→jump to:navigation, search
Author: pcplayerFrom: I use subversion-http://www.iusesvn.comDate: 2008-1-2
This article describes the use of Svnsync to synchronize the repository, to achieve the purpose of backing up the repository
There are two commands to use.
1.
Next, I. SVN version database lossless migration and automatic backup (I)
Iii. Regular automatic backup version library Solution
1. Business objectives① Remote automatic backup of the version library, back up the version library to another machine.Assume that the source version library we want to synchronize is http: // 192.168.1.210/SVN/svnprojec located in machine A. The specific path does not need to be ignored because we use the HTTP protocol.The target database is in machine B, file: // F
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.