[sync] wake on lan

I use NCP with Raspberry 4, works like a charm. But I have a Synology NAS I just want to use for backups.
The NAS will shutdown and only should wake up over WOL (this already works) but how can I configure for example rsync to send WOL Magic Command, wait for NAS to Power Up, sync and powerdown again.

Thanks for you help!

quickly: you could setup a crop-job with a ping (or magic command - in a batchfile)…