Hi, the export script exports metadata of queries saved(query.json) and the “Export All User Queries” option is only available through UI. However, since query.json contains all the details of queries saved, it is basically used as backup.The exported files can be imported to data catalog through import script and UI as well. To automate the backup process, I would recommend using a command to execute the export script. Here you can find more details for import/export of data catalog.
[Import and Export Data Catalog Metadata Using a Script](https://community.denodo.com/docs/html/browse/7.0/vdp/data_catalog/administration/import_export/import_export#import-and-export-data-catalog-metadata-using-a-script)
Hope this helps!