extract to share.go and make rsyncfrom