#!/bin/bash # Sync contents of current directory with server host. This uses # rsync.merge to make sure there are no catastrophic tree deletions if # the local tree has stuff removed. Use a manual "rsync.clone". HOST=tom@giebrok DIR=`pwd` CMD="rsync.merge . $HOST:$DIR/" echo $CMD exec $CMD