rsync doesn't have a rety flag, so i added a script that does that