As mentioned earlier, Rattail’s backup logic can do the following:
dump databases to file
rsyncto copy files somewhere
borg createto make Borg archive(s) somewhere
Note that the database dump always happens first, so that the
resulting files can be included in the
runs (if applicable).