Can someone Please check if this automatic Plex Database backup script safe?

There doesn’t appear to be anything nefarious in there.
But I won’t vouch for it being functional.

You might want to take a look at this as well, as it is much more sophisticated and tested: PSA: Script to back up and restore Plex app data on a Windows system