converted sync to a bash script
converted sync to a bash script, this time with the actual file