#!/bin/bash
# /etc/cron.daily/backup-neo
rsync --delete -ax --numeric-ids 192.168.0.202:/ /home/scratch/neo/latest 2> /dev/null
ret=$?

case $ret in
0)
	# backup done, let's save it
	cp -al /home/scratch/neo/latest /home/scratch/neo/`date -I`
	;;
12)
	# neo was not at home
	;;
*)
	echo "backup failed with return value $ret"
	;;
esac
