78e21b5200
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
22 lines
349 B
Bash
Executable file
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
|