#!/bin/sh
# check and print only different files between local and remote directory with rsync using SSH authentication
# the -n option is for dry run
LOCAL_DIR='/var/www/blog/';
REMOTE_DIR='/var/www/blog';
REMOTE_HOST='192.168.0.50';
##LOCAL_DIR1='/var/www';
##REMOTE_DIR1='/var/www/';
##REMOTE_HOST1='192.168.0.70';
rsync -rvn --links $LOCAL_DIR root@$REMOTE_HOST:$REMOTE_DIR/.
##rsync -rvn --links $LOCAL_DIR1 root@$REMOTE_HOST1:$REMOTE_DIR1/.
