System Engineering

Subversion Repogitories Backup Script

Posted on
Subversion

Features Full Backup (Dump) Incremental Backup (Dump) Local Backup & Remote(AWS S3) Upload Sample Environments REPOS_ROOT=/home/svn/repos BACKUP_ROOT=/home/backup/svn S3_PATH=s3://svn-backup/svn #!/bin/bash #—————————————- # Subversion Repogitories Backup Script # Revision 20160531 # Copyright (c) Aiden Kim # http://www.daemon.pe.kr #—————————————- DSTR=$(date +”%Y%m%d”) ARCHIVE_PERIOD=30 REPOS_ROOT=/home/svn/repos BACKUP_ROOT=/home/backup/svn S3_PATH=s3://svn-backup/svn # Each repogitories REPOS_DIRS=`ls -t ${REPOS_ROOT} 2>/dev/null` for DIR in ${REPOS_DIRS}; do # Create directory BACKUP_PATH=${BACKUP_ROOT}/repo-${DIR} […]

System Engineering

Install Subversion Server on OpenSUSE 12.3

Posted on

1. Install requirements zypper install subversion subversion-server apache2 apache2-doc apache2-prefork libapr1 libapr-util1 libneon libneon-devel 2. Create account groupadd -r svn useradd -r -g svn -d /home/svn -s /bin/false svn 3. Add Apache2 module a2enmod dav a2enmod dav_svn a2enmod authz_svn 4. Configure Apache vi /etc/apache2/conf.d/subversion.conf <IfModule mod_dav_svn.c> <Location /svn> Order allow,deny Allow from all DAV svn SVNParentPath […]