nsbin/x20x-sync
Nico Schottelius 78e21b5200 mass update commit
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-07-21 10:59:03 +02:00

22 lines
349 B
Bash
Executable file

#!/bin/sh
dir="/home/"
case $(hostname) in
kr)
other="root@ikn.ethz.ch"
;;
ikn)
other="root@kr.ethz.ch"
;;
*)
echo "I am confused, where I am?"
exit 1
;;
esac
sudo rsync -av \
--exclude /home/services/eth-usbhd \
--exclude /home/services/usbhd \
--delete-before --delete $dir $other:$dir