Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Local mirror of Boost SVN on ci.boost.org #6

Closed
dabrahams opened this Issue Dec 30, 2012 · 2 comments

Comments

Projects
None yet
1 participant
Owner

dabrahams commented Dec 30, 2012

In process:

aptitude install screen subversion
adduser --system svnsync
cd ~svnsync
sudo -u svnsync -H svnadmin create boost
cat>boost/hooks/pre-revprop-change<<EOF
#!/bin/sh
USER="\$3"

if [ "\$USER" = "svnsync" ]; then exit 0; fi

echo "Only the svnsync user can change revprops" >&2
exit 1
EOF
chmod +x boost/hooks/pre-revprop-change
sudo -u svnsync -H svnsync init file:///home/svnsync/boost http://svn.boost.org/svn/boost
screen sudo -u svnsync -H svnsync synchronize file:///home/svnsync/boost

@dabrahams dabrahams was assigned Dec 30, 2012

Owner

dabrahams commented Dec 30, 2012

To close this ticket I'll need to first set up a cron job that does the sync command periodically

Owner

dabrahams commented Dec 31, 2012

Sync is done; I created this crontab so it's sync'ing every 5 minutes.

# m h  dom mon dow   command
  5 *   *   *   *       svnsync synchronize -q file:///home/svnsync/boost

@dabrahams dabrahams closed this Dec 31, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment