Creating Rsync script to copy files for multiple users and the shared directory

Well after some more searching I found the answer here: https://superuser.com/questions/270911/run-rsync-with-root-permission-on-remote-machine. So what I have to do is create a script and then have it executed as root. The script can either be run from the NAS pulling data from the Mac or the other way around. Which I will probably do, because then I can run the script at shutdown.