#!/bin/sh

rsync -avzh --delete --include=".description" --exclude=".*" /var/gopher/ /var/cosmic-backup/gopher/
rsync -avzh --delete --exclude=".*" /var/wiki/ /var/cosmic-backup/wiki/
cd /var/cosmic-backup || exit
rm ./gopher/rss.xml # skip archival of rss feed
rm ./gopher/atom.xml # skip archival of atom feed
git add .
git commit -m "backup"
git push origin master
