#!/bin/bash [ ! -d "$1" ] && echo "SOURCE FOLDER $1 not reachable!" && exit -1 rsync -a --info=progress2 --remove-source-files "$1" "$2" && find "$1" -type d -empty -delete