import rsync function
create a clean rsync API to push files