Line 100... |
Line 100... |
100 |
is the best way to make a backup copy of the entire SvarDOS build system along
|
100 |
is the best way to make a backup copy of the entire SvarDOS build system along
|
101 |
with all its history. To achieve such mirror, one needs to create an empty
|
101 |
with all its history. To achieve such mirror, one needs to create an empty
|
102 |
svn repository:
|
102 |
svn repository:
|
103 |
|
103 |
|
104 |
$ svnadmin create /srv/svardos-mirror
|
104 |
$ svnadmin create /srv/svardos-mirror
|
105 |
$ svnsync init file:///srv/svardos-mirror svn://svn.svardos.org/svardos
|
- |
|
106 |
|
105 |
|
107 |
Then make this repository to accept modifications of revision properties, this
|
106 |
Then make this repository accept modifications of revision properties, you need
|
108 |
is mandatory so it can import historical data:
|
107 |
to create a hook. This is mandatory so it can import historical data:
|
109 |
|
108 |
|
110 |
$ echo '#!/bin/sh' > /srv/svardos-mirror/hooks/pre-revprop-change
|
109 |
$ echo '#!/bin/sh' > /srv/svardos-mirror/hooks/pre-revprop-change
|
111 |
$ echo 'exi 0' >> /srv/svardos-mirror/hooks/pre-revprop-change
|
110 |
$ echo 'exit 0' >> /srv/svardos-mirror/hooks/pre-revprop-change
|
- |
|
111 |
$ chmod +x /srv/svardos-mirror/hooks/pre-revprop-change
|
- |
|
112 |
|
- |
|
113 |
Now initialize your empty repository so it knows it is a SvarDOS mirror:
|
- |
|
114 |
|
- |
|
115 |
$ svnsync init file:///srv/svardos-mirror svn://svn.svardos.org/svardos
|
112 |
|
116 |
|
113 |
Finally, populate your mirror using svnsync (this operation has to be performed
|
117 |
Finally, populate your mirror using svnsync. This operation has to be performed
|
114 |
periodically to keep your mirror up to date):
|
118 |
periodically to keep your mirror up to date:
|
115 |
|
119 |
|
116 |
$ svn up /srv/svardos-mirror
|
120 |
$ svnsync sync file:///srv/svardos-mirror
|
117 |
|
121 |
|
118 |
The same procedure can be used to migrate the SvarDOS build system from one
|
122 |
The same procedure can be used to migrate the SvarDOS build system from one
|
119 |
server to another.
|
123 |
server to another.
|
120 |
|
124 |
|
121 |
NOTE: Such mirror server must not be used to send commits to. The only process
|
125 |
NOTE: Such mirror server must not be used to send commits to! The only process
|
122 |
that should write to it is svnsync.
|
126 |
that should write to it is svnsync.
|
123 |
|
127 |
|
124 |
|
128 |
|
125 |
======================================================================= EOF ===
|
129 |
======================================================================= EOF ===
|