Diferencia entre revisiones de «Subversion»
De gacq wiki
Línea 1: | Línea 1: | ||
− | |||
= Versioning config files files using subversion = | = Versioning config files files using subversion = | ||
== Install and create a repository == | == Install and create a repository == | ||
Línea 8: | Línea 7: | ||
chown -R www-data:www-data /var/lib/svn/repo | chown -R www-data:www-data /var/lib/svn/repo | ||
htpasswd -c /var/lib/svn/.passwd gacq | htpasswd -c /var/lib/svn/.passwd gacq | ||
+ | </pre> | ||
+ | |||
+ | ;/etc/apache2/mods-enabled/dav_svn.conf | ||
+ | <pre> | ||
+ | <Location /repo> | ||
+ | DAV svn | ||
+ | SVNPath /var/lib/svn/repo | ||
+ | AuthType Basic | ||
+ | AuthName "Repositorio" | ||
+ | AuthUserFile /var/lib/svn/.passwd | ||
+ | <LimitExcept GET PROPFIND OPTIONS REPORT> | ||
+ | Require valid-user | ||
+ | </LimitExcept> | ||
+ | </Location> | ||
+ | </pre> | ||
+ | |||
+ | == Servers (sample) == | ||
+ | <pre> | ||
+ | cd / | ||
+ | svn co http://server/repo/trunk/VVM . | ||
+ | svn add --depth=empty etc | ||
+ | svn add etc/cron.* | ||
+ | svn add --depth=empty appl | ||
+ | svn add appl/conf | ||
+ | svn add --depth=empty usr | ||
+ | svn add --depth=empty usr/local | ||
+ | svn add usr/local/bin | ||
</pre> | </pre> |
Revisión del 14:32 26 feb 2010
Versioning config files files using subversion
Install and create a repository
aptitude install subversion subversion-tools libapache2-svn mkdir /var/lib/svn svnadmin create /var/lib/svn/repo chown -R www-data:www-data /var/lib/svn/repo htpasswd -c /var/lib/svn/.passwd gacq
- /etc/apache2/mods-enabled/dav_svn.conf
<Location /repo> DAV svn SVNPath /var/lib/svn/repo AuthType Basic AuthName "Repositorio" AuthUserFile /var/lib/svn/.passwd <LimitExcept GET PROPFIND OPTIONS REPORT> Require valid-user </LimitExcept> </Location>
Servers (sample)
cd / svn co http://server/repo/trunk/VVM . svn add --depth=empty etc svn add etc/cron.* svn add --depth=empty appl svn add appl/conf svn add --depth=empty usr svn add --depth=empty usr/local svn add usr/local/bin