Unraid User Scripts and hub Backups

I just set this up with Unraid userscripts the other day based on something I read on here. I'll try to find the original post to provide credit and edit this one accordingly. (Edit: this is the post I used to help set it up for me: How Hubitat Backup/Restore has Saved My â– â– â–  - #11 by Abhijeet_Ghosh)

I have two set up.

The script to save the backup:

#!/bin/bash
wget --content-disposition -P /mnt/disk10/backup/hubitat/ http://192.168.0.69/hub/backupDB?fileName=latest
echo Hubitat Hub backup completed

And the script to trim the number of backups kept:

#!/bin/bash
find /mnt/disk10/backup/hubitat/ -mindepth 1 -type f -mtime +14 -delete
echo Hubitat backups limited to 14 days

Obviously the path and IP are my own. Truth be told I haven't been running it for 2 weeks yet so I can't confirm that the auto-delete of ones older than 14 days works, but the daily backups are in fact saving to the appropriate path, with the date and firmware version in the file name.

Hope this helps!