You just the need the rsync command in the script, command itself will depend on what you need, Google rsync manpage, but a typical command would be:
rsync -av /mnt/remotes/source_share/ /mnt/user/destination_share/
P.S. use the UD plugin to mount the remote shares.