added rsync, and checks to see if directory exists, if not create directory