Hi all,
hello everyone. i have the question if i can backup selected databases and save them to a local drive using an automatically executed report by a macro. I use Aris Cloud Enterprise SR24. SoftwareAG sent me these files, but I can't really do much with them?
var oAdminComponent = Context.getComponent("ServerAdmin");
var oDB = ArisData.getActiveDatabase();
var bt = oAdminComponent.backupDatabase(oDB);
Context.addOutputFile(oDB.Name(-1)+".adb,bt);Does anyone happen to have a finished report that I could use as a guide? Or can someone help me to create one?
Thanks in advance
M. Zschuckelt on
This seems to be the code of a report that does exactly the same that a user with the privilege backup administrator could achieve in the context menu of a database: Backup and download the active database to an adb file.
So I understand you want to save the database regularly to your local drive? A macro is executed only in your client, i. e. only when you are logged in. And I am not sure what your expectation of "automatically" is? Automatically on what event? Consider that a database backup may take multiple minutes, depending on the size of the database.
A common approach for doing regular backups is the backup of the entire tenant. The advantages of a tenant backup are: