In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Synchronize the SVN code base on Windows to the backup SVN machine
SVN source library IP: 192.168.0.200
SVN Target Library (backup Library) IP:192.168.0.62
VisualSVN Server version: VisualSVN-Server-3.9.5-x64.msi
1. Install the SVN environment on the machine of the target library and try to be consistent with the SVN version of the source library.
There are several things you need to pay attention to when installing VisualSVN-Server-3.9.5-x64.msi:
(1), select the standard mode in the process of installation, there is no limit on the number of users to create, but some functions are limited but enough.
(2) do not download the installation of VisualSVN-Server version 4.0 or above, because you can only create 15 users free of charge.
By default here, your source database host has been installed, regardless of whether you have installed it or not, users who are just doing experiments alone will install it. Install it on your own according to the situation.
2. After the SVN target library is installed on the host, create a lx library on the target library, and then create a new pre-revprop-change.bat in the hooks folder under the lx folder.
The contents are as follows:
Echo "Changing revision properties other than svn:log is prohibited" > & 2
Exit 0
3. Then initialize the synchronous execution command (execute under cmd)
Svnsync init file:///D:/Repositories/lx https://192.168.0.200:443/svn/lx/
Or
Svnsync init https://192.168.0.62/svn/lx https://192.168.0.200:443/svn/lx/
Note that initialization is performed for the first time, because the use of the https protocol will prompt you to agree to the agreement, select p enter.
Refer to the screenshot:
4. carry out the project synchronization command
Svnsync sync file:///D:/Repositories/lx
Or
Svnsync sync https://192.168.0.62/svn/lx
The screenshot is as follows:
Question: C:\ Users\ Administrator > Svnsync sync file:///D:/Repositories/lx
Svnsync: E170013: Unable to connect to a repository at URL 'file:///D:/Repo
Ies/lx'
Svnsync: E180001: Unable to open repository 'file:///D:/Repositories/lx
Svnsync: E160043: Expected FS format between'1' and'7'; found format'8'
If there is a problem like the above
The solutions are as follows:
1. Change the IP address to synchronize: svnsync sync https://192.168.0.62/svn/lx
2. Directly modify the D:\ Repositories\ lx\ db\ format file to a value between 1 and 7. Just change it to 7.
Note that do not use notepad to open, use notepad++ development tools such as notepad to open, and then need to modify the format file properties to remove read-only change (modify the properties of the right-click attribute Windows, computer people understand it), otherwise there is no authority to edit. After the modification, the permission is changed back to read-only.
Synchronization is successful! Other new projects are also similar to steps 2, 3 and 4 above.
Later, if you want to switch to the target library for use, in case the client re-update causes problems such as unable to update because of different uuid, you can ignore the problem of re-chectout version change.
If you have to keep update and other operations on the original pulled version file (this can only be kept exactly the same under the same SVN domain name or IP), you must change the version library UUID on the switched target library to the UUID used on the previous source library.
Query the UUID command and modify the UUID as follows:
Query the UUID command (T2 is the project directory under your version library path)
Svnlook uuid D:\ Repositories\ T2
The above commands are available on both the source library and the template library
If you query the source library on the template library, you can use the
Svn proplist-v-- revprop-R0 https://192.168.0.62/svn/t2
The display is as follows (reference):
Unversioned properties on revision 0:
Svn:date
2019-06-21T02:09:13.987543Z
Svn:sync-from-url
Https://192.168.0.200/svn/t2
Svn:sync-from-uuid
27b48cb4-c766-3641-acf0-8e242da8b4b8
Svn:sync-last-merged-rev
one
The command to modify UUID is:
C:\ Users\ Administrator > svnadmin setuuid D:\ Repositories\ T2 27b48cb4-c766-3641-ac
F0-8e242da8b4b8
Note: the modify UUID command can only be executed on the target library CMD
Preferably before.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.