Reliably copy files from a folder

A simple bash script that uses rsync to copy files from a folder. The advantage of this script is when you have a brief network timeout or connection issue, it will still resume until MAX_RESTARTS is exhausted.