Depends on the computer it is run on. For Linux, you’ll find several examples of shell scripts to create and download a local backup on the Hubitat community.
And then you can use cron to schedule the script to run daily.
Here's an example from an old post of mine: