Run script?

Hi all,
I have a folder on my NAS (MyCloud Ex2 Ultra) that is a mirror copy of a source directory on a Windows server.
I run rsync each night to have them in sync (the windows server use DeltaCopy client while the rsync daemon is running on the nas).
Now, for backup, I’d like to copy that folder on the same NAS each night (after sync) renaming it something like “FOLDERNAME_YYYY_MM_DD”.
Is there a way to run a script on nas that do this?
Thanks.