Add releng scripts to the repository.

This commit is contained in:
Jorge Manuel B. S. Vicetto (jmbsvicetto) 2012-07-09 17:47:42 +00:00
parent bd95b08675
commit 498f935c11
13 changed files with 1142 additions and 0 deletions

10
scripts/backup_snapshot_repo Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
# Start our rsyncs
RSYNC_OPTS="--archive --delete --sparse --whole-file"
if [ -e /release/repos/snapshot-tree/hooks/post-commit ]
then
echo "$(date): Starting rsync of trees from tmpfs to disk..." >> /var/log/snapshot-tree-backup.log
rsync ${RSYNC_OPTS} /release/repos/snapshot-tree/* /release/repos/snapshot-tree-disk 2>&1 >> /var/log/snapshot-tree-backup.log || echo "$(date): rsync failed!" >> /var/log/snapshot-tree-backup.log
fi