#!/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 \ --exclude "0000-Unmirrored Minimal Ramize-Physave*" \ --exclude "*/0000-Config/Physave Path" \ --exclude "*/0000-Config/Datetime of Last Physave" \ --exclude "*/0000-Config/Datetime of Last Ramize" \ "$from_path_for_rsync" \ "$to_path_for_rsync"