#!/bin/bash if [ $# -eq 2 ]; then tree -ha --du "$1" time rsync -vazh --progress --partial "$@" else time rsync "$@" fi