#!/bin/bash #pwd ; echo "from_path_for_rsync: $from_path_for_rsync" ; echo "to_path_for_rsync: $to_path_for_rsync" ; exit [ -z "$from_path_for_rsync" ] && exit 1 [ -z "$to_path_for_rsync" ] && exit 2 rsync --archive --verbose --update --recursive --itemize-changes \ "$from_path_for_rsync" \ "$to_path_for_rsync"