Is there a way to automatically export all globals? I want to script out this process so that this happens on a specific frequency. This is for testing, as an additional backup safeguard.
Have a look at %System.OBJ.Export():
TESTING>s itm="*.GBL" TESTING>s file="C:\Projects\export_mm.xml" TESTING>d $System.OBJ.Export(.itm,.file,,.errors)
Having said that, since this is just for backups you might also consider just using the standard Online Backup utility which will backup all globals in the selected database(s) into a file: