Skip to content

Instantly share code, notes, and snippets.

@LeSpocky
Last active August 29, 2015 13:58
Show Gist options
  • Save LeSpocky/10018824 to your computer and use it in GitHub Desktop.
Save LeSpocky/10018824 to your computer and use it in GitHub Desktop.
Shell-Skript, das von cron ausgeführt wird auf einem Debian GNU/kFreeBSD um meine Subversion-Repository-Mirrors auf den aktuellen Stand zu bringen.
#!/bin/sh
# get new svn revisions
echo '> syncing fli4l repository'
/usr/bin/svnsync sync file:///tank/backup/nettworks/svn/fli4l
echo ''
# get new svn revisions
echo '> syncing eisfair repository'
/usr/bin/svnsync sync file:///tank/backup/nettworks/svn/eisfair
echo ''
# get new svn revisions
echo '> syncing org repository'
/usr/bin/svnsync sync file:///tank/backup/nettworks/svn/org
echo ''
# handle zfs snapshots
if [ "$(date +%d)" = "13" ]
then
echo '> creating zfs snapshot'
/usr/bin/sudo -n /usr/sbin/zfSnap -v -s -S -a 1y tank/backup/nettworks/svn
echo ''
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment