- puppet-setup-stored: configure storeconfigs database.
- site backup, copy and restoration: include home folder when available?
- backup-restore-user and backup-restore-users.
- - hydractl {backup,restore}-site {debian,wiki}.
+ - hydractl backup-restore-site {debian,wiki}.
- wrapper to import/export monkeysphere keys into keyringer.
fi
# Determine site location.
-if [ "$SITE" == "git" ] && [ "$SITE" == "svn" ]; then
- LOCATION="/var"
+if [ "$SITE" == "git" ] || [ "$SITE" == "svn" ]; then
+ LOCATION="/var/$SITE"
+elif [ "$SITE" == "debian" ]; then
+ LOCATION="/var/reprepro"
+elif [ "$SITE" == "wiki" ]; then
+ LOCATION="/var/www/data/wiki/"
else
- LOCATION="$SITES"
+ LOCATION="$SITES/$SITE"
fi
# Set backups user.
# Backup site
if [ -d "$SITES/$SITE" ]; then
echo "Backing up site folder..."
- tar jcvf $PACK $LOCATION/$SITE
+ tar jcvf $PACK $LOCATION
md5sum $PACK > $PACK.md5
sha1sum $PACK > $PACK.sha1
chown root.$BACKUPS_GROUP $PACK*