Convert rsync scripts to sh