Last active
August 29, 2015 13:58
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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