Managing Backups
The UI for managing backups is located within the host app.
A user must have super user permissions to manage host settings and hence view, download and create backups. Any associated server side Axon functions or REST APIs must enforce the super user role check.
The name of the new tab is called Backups.
The backups view contains a tabular list of all backups made so far.
A user can manually create, delete and download backups from this view.
When a backup is created…
The user is asked for a password that must meet all the security requirements used by FIN for passwords.
The UI must show a progress bar of the backup being created.
If the user navigates away from the host app and returns, the UI must show the state of backup being made.
Once a backup has been created, the table must be updated with the latest information.
When a backup is deleted, the user must be first asked whether they are sure they want to delete the backup.
If a UI is being served using Edge2Cloud and the user clicks to download a backup, the user must be redirected instead to the Edge2Cloud device summary page.
A cloud user has the {{cloudUser}} marker tag on the user record.
A backup can be uploaded to Edge2Cloud via this UI.
...
Table of Contents |
---|
Automate Cloud Backup
The option to automate backup remotely can be done under two locations within FIN:
DB Builder
Folio Menu
Verify Edge2Cloud is connected
Ensure Edge2Cloud is registered with a working project to enable cloud backup.
1. Select App Launcher icon located on the upper left
2. Select Cloud tile under End User applications
3. Under Edge2Cloud settings, verify the status is displaying Connected
If the status is Disconnected, select Register with Edge2Cloud and login into the Edge2Cloud account.
DB Builder - Snapshot Tree
1. Select App Launcher icon located on the top left
2. Select DB Builder tile under System Integrator applications
7. After the progress bar reaches 100%, the FIN Snapshot overview will be updated with the latest information.
Folio Menu - Folio Snapshot
1. Select App Launcher icon located on the upper left
2. Select Folio tile under Advanced applications
Select the Menu option
...
finProjBackup(@p:demo).finEdge2CloudCreateRollingBackupSync()
...
...
The finEdge2CloudAllBackupTasks is used to poll what cloud backups are being created. This can be polled for the whether a cloud backup uploaded successfully or not including the backup progress.
...
The finEdge2CloudCancelBackupTask is used to cancel uploading a cloud backup.
The cloud backup progress and state must be shown in the backup table. It should automatically poll for changes and refresh.
Please note, some changes to finEdge2Cloud.pod need to be made to update the state of backup folio database with progress information.
Note
This UI is the only UI used for managing cloud backups from FIN.
Automating backups and cloud backups
As well as manually creating backups, it’s important a user is able to automate the creation of a backup as well as upload it to Edge2Cloud.
This should be done via Axon functions that can create a backup. Consider…
Creates a new backup zip file an automatically generated date time postfix…
Code Block |
---|
finHostBackup() |
Creates a new backup zip file with a specific name. If a backup file already exists then it should be automatically overridden…
Code Block |
---|
finHostBackup("backup.zip") |
Please note: a backup name must be validated. It cannot contain any forward or back slashes. It must end with zip.
The Axon function is synchronous and returns a grid with the newly created backup information.
The Axon functions can be chained with the Edge2Cloud functions. For example…
Code Block |
---|
finHostBackup().finEdge2CloudCreateRollingBackup() |
In the above example, the backup is created and then the file name is fed to the cloud backup function.
The grid returned from finHostBackup must contain a column called name with one row. The name is the name of the file in the /var/backups/ directory.
To be automated, these Axon functions can be added to a job. This should be documented for a user accordingly.
...
Edge2Cloud Backups Location
Once uploading a snapshot to the cloud, a user with the DeviceAdmin
role can view, download or delete backup information. The backups are available as a tab under a device's summary page in the Edge2Cloud portal.
Login to the organization in Edge2Cloud.
Navigate to the Devices tab on the left menu or under the organization view and find the device in which the project belongs to.
Once the device is found, click on it to get that device’s overview screen.
In the overview screen of that device, the user with the DeviceAdmin can find the “Backups” tab.
In the Backups tab is where the user can view, download, or delete the snapshots that were upload to the cloud.