How to automate a clean rules backup?

I'm trying to automate a backup of my Hazel rules and it seems surpisingly difficult, and honestly a bit baffling that this isn't simple.
- the export rules function is manual
- the rules sync must be set up folder-by-folder
- I can backup the .hazelrules files from 'Application Support' but they don't appear to include info on the related folder and would require me to remember and recreate each folder and import the rules one by one
- other posts imply that even with a backup of these files, I will still need to set them up again one by one
How can I automate a backup that includes ALL my folders' rules - including the names of the folders, and covering future folders that I haven't set up yet?
- the export rules function is manual
- the rules sync must be set up folder-by-folder
- I can backup the .hazelrules files from 'Application Support' but they don't appear to include info on the related folder and would require me to remember and recreate each folder and import the rules one by one
- other posts imply that even with a backup of these files, I will still need to set them up again one by one
How can I automate a backup that includes ALL my folders' rules - including the names of the folders, and covering future folders that I haven't set up yet?