Backup & Restore
Introduction
Backup & Restore is a feature used to protect application data by creating backup copies and restoring them when needed. The backup process ensures that all data is stored safely so that it can be recovered in the event of a system failure, error, or accidental data deletion.
The Backup and Restore page provides three options:
- Automatic Backup: Enables scheduled backups to run automatically at defined intervals, ensuring your data is consistently backed up without manual intervention.
- Restore: Lets you retrieve and restore data from previous backups quickly and securely, minimizing downtime and data loss.
- Backup Management: Provides tools to organize, monitor, and maintain your backup files, including creating a new backup manually.
1. Automatic Backup
Automatic Backup allows data to be backed up automatically based on a defined schedule. With this feature, data is backed up periodically without manual intervention, so it remains safe and available when needed.
Follow the steps below to configure automatic backup in the system:
1. Open the Backup & Restore menu
- Click the System Setting menu located at the bottom of the navigation panel.
- Select the Backup & Restore menu from the options that appear.
- On the Backup and Restore page, select the Automatic Backup card and click the Manage Automatic Backup button.
2. Fill in the form with the following data
- Status and Setting: Shows the current backup status and provides options to reset or reconfigure the backup settings.
- Status: A toggle indicating whether the automatic backup is Active or Inactive.
- Reset Setting: A button to reset the backup configuration to its default values.
- Scope (Mandatory): Define the extent of data to be included in the backup.
- System Configuration: A complete backup of system configuration such as access token, security config, user management, agent, batch encryption, decrypt client, and backup & restore.
- Keys: A backup of the master key and security config.
- Audit Log: A backup of user activity records.
- System Log: A backup of system activity for health monitoring, troubleshooting, and operational analysis.
- Destination (Mandatory): Select where the backup file will be stored. Choose between local disk or cloud-based storage (S3) based on your infrastructure and retention needs.
- Local Disk: Store backup files directly on the server's local storage.
- S3 (POC): Store backups in an Amazon S3-compatible object storage.
-
If you choose Local Disk, fill in the following field:
- Path (Local) (Mandatory): Specify the exact location or directory where the backup file will be saved.
-
If you choose S3 (POC), fill in the following fields:
- Bucket Name (Mandatory): Specify the name of the S3 bucket where backup files will be stored. This must match an existing bucket in your object storage provider.
- Region (Mandatory): Enter the region where your S3 bucket is hosted. This ensures correct routing and access to your storage location.
- Access Key ID (Mandatory): Provide the access key ID used to authenticate and authorize access to the S3 bucket. This is typically part of your cloud credentials.
- Secret Access Key (Mandatory): Enter the secret key paired with the access key ID to securely authenticate requests to your S3 storage.
- Path/Prefix (Optional): Define an optional folder-like prefix within the bucket to organize backup files. This helps manage the file structure without creating actual directories.
-
Schedule Backup (Mandatory): Set how often and at what time the automatic backup should run. Choose one of the following options and enter the time in 24-hour format:
- Daily: Runs every day at the specified time.
- Weekly: Runs every week on the specified day and time.
- Monthly: Runs every month on the specified date and time.
-
Enable Retention: Set the data retention to Active or Inactive to automatically delete or move backups after a specified period.
-
Retention Period (days): Specify the number of days a backup is retained before it is automatically deleted.
3. Save the Configuration
- Once all fields have been filled in, click the Save Automatic Backup button. To go back without saving, click the Back button.
- After clicking Save Automatic Backup, the system will display a notification stating Your password has been created successfully, along with the generated password and a Copy button. This password will be required during the restore process.
Please note that the password is displayed only once. Make sure to copy and store it in a safe place immediately, as it will not be displayed again. Use the Copy button to quickly copy the password to your clipboard.
2. Backup Management
Backup Management is used to create a backup manually and to view and manage the list of backup files that have been created in the system.
To open this page:
- Click the System Setting menu located at the bottom of the navigation panel.
- Select the Backup & Restore menu from the options that appear.
- On the Backup and Restore page, select the Backup Management card and click the Manage Backups button to access the List Backup page.
2.1. Create Backup
On the Backups Management page, users can create a new backup manually at any time as needed. This method lets you perform a one-time backup by manually specifying the backup file name, description, data scope, destination, and path when you need full control over the backup process.
1. Click the Create Backup button
On the Backups Management page, click the Create Backup button at the top right to open the Manual Backup page.
2. Fill in the form with the following data
- Backup File Name (Mandatory): Enter a name for the manual backup file.
- Description: Provide additional details about the manual backup (optional).
- Scope (Mandatory): Select the data to be backed up.
- System Configuration: A complete backup of system configuration such as access token, security config, user management, agent, batch encryption, decrypt client, and backup & restore.
- Keys: A backup of the master key and security config.
- Audit Log: A backup of user activity records.
- System Log: A backup of system activity for health monitoring, troubleshooting, and operational analysis.
- Destination (Mandatory): Select where the backup file will be stored. Choose between local disk or cloud-based storage (S3).
- Local Disk: Store backup files directly on the server's local storage.
- S3 (POC): Store backups in an Amazon S3-compatible object storage.
- Path (Local) (Mandatory): If you choose Local Disk, specify the exact location or directory where the backup file will be saved.
3. Start the Backup
Once all fields have been filled in, click the Start Backup button.
After clicking the Start Backup button, the system will display a notification containing a password to confirm that the manual backup was successful. This password will be required when restoring data from the backup file.
Please note that the password is displayed only once. Make sure to copy and store it in a safe place immediately, as it will not be shown again. Use the Copy button to quickly copy the password to your clipboard.
2.2. List Backup
After the backup has been created, users can view the list of backup files saved in the system on the Backups Management page.
The following is an explanation of each column displayed in the table:
- Backup File Name: The name of the backup file that was created, along with tags indicating its scope.
- File Size: The size of the backup file.
- Method: The backup method used.
- Backup Location: The storage location of the backup file.
- Destination Path: The path or directory where the backup file is stored.
- Backup File Status/Verification: The status of the backup file.
- Backup Date & Time: The date and time the backup file was created.
- Action: Contains a button with a three-dot icon for deleting the selected backup file.
At the bottom of the table, users can set the number of rows displayed via Rows per page, and navigate between pages using the available pagination.
2.3. Filter Backup
On the Backup Management page, there is a Filter feature indicated by a funnel icon. This feature helps users filter the backup list based on certain criteria such as type and status, making it easier to display relevant information.
The following are the steps to use the Filter feature:
1. Open the Backup & Restore menu
Click the System Setting menu at the bottom of the navigation panel, select the Backup & Restore menu, then select the Backup Management card and click Manage Backups to access the List Backup page.
2. Display the Filter Panel
Click the Filter button at the top right of the table to display the filter options.
3. Select the Filter Criteria
- In the filter panel, select the desired criteria, for example:
- Type: Filter backup files by type.
- Status: Filter backup files by status.
- Check one or more criteria as needed.
4. View the Filter Results
After selecting the filter criteria, the system will automatically display the list of backup data according to the selected filter.
5. Clear the Filter
- To remove a specific filter, select the Clear option at the bottom of the filter list.
- To remove all filters at once, click the Clear all filters button next to the filter criteria.
- Once the filter is cleared, the system will automatically display all backup data without any filter restrictions.
2.4. Search Backup
The search feature makes it easier for users to find specific backup data without having to browse through the entire list manually.
The following are the steps to use the search feature:
- Click the System Setting menu at the bottom of the navigation panel.
- Select the Backup & Restore menu, then select the Backup Management card and click Manage Backups to access the List Backup page.
- Locate the Search field at the top right of the table.
- Enter a keyword in the Search field. The keyword can be the name of a backup file.
- The system will automatically display the list of backup data that matches the entered keyword.
- To display all data again, manually clear the keyword from the Search field.
2.5. Delete Backup
On the Backup Management page, users can delete backup data that is no longer needed.
The following are the steps to delete backup data:
1. Open the Backup & Restore menu
Click the System Setting menu at the bottom of the navigation panel, select the Backup & Restore menu, then select the Backup Management card and click Manage Backups to access the List Backup page.
2. Select the Backup Data to Be Deleted
- Find the backup data you want to delete in the Backup Management table.
- In the Action column of the backup row you want to delete, click the three-dot icon.
- Click the Delete button to proceed with the deletion process.
3. Confirm the Deletion
- After clicking the Delete button, the system will display a confirmation window to delete the backup data.
- Click Delete to confirm the deletion.
Be sure to double-check before deleting backup data, as this action cannot be undone.
3. Restore
Restore is the process of recovering your system configuration and key data from a backup file that was created previously. This action will overwrite your current settings and requires confirmation before proceeding to avoid accidental data loss.
Follow the steps below to restore data in the system:
1. Open the Backup & Restore menu
- Click the System Setting menu located at the bottom of the navigation panel.
- Select the Backup & Restore menu from the options that appear.
- On the Backup and Restore page, select the Restore card and click the Restore Backup button.
2. Fill in the form with the following data
-
Method Restore (Mandatory): Choose how you want to restore a backup: either select an existing backup file from the list or upload a backup file manually from your device.
- Select File: Choose a backup file that already exists in the system for the restore process.
- Upload File: Upload a backup file from your device using drag-and-drop or by selecting the file manually.
-
Delete Existing Data: A toggle to decide whether to remove current data before applying the selected backup. When enabled, the system clears the current data prior to restoring the backup. Enable this option only if you want to replace all current data with the contents of the backup.
-
Select Backup File (Mandatory): Choose a backup file to begin the restore process. Make sure the selected file contains the correct data and configuration you want.
- If you choose Select File, select the desired backup file from the Select backup file dropdown.
- If you choose Upload File, drag and drop the backup file into the upload area or click Choose a file to select it manually. The supported file format is
.tar.gz.enc.
3. Start Restore using the Select File method
- After selecting the backup file, click Start Restore to begin the restore process.
- After clicking the Start Restore button, the system will display a restore confirmation window.
- Click Yes, Restore to confirm and continue the restore process.
- Once the restore is confirmed, the system will display a progress bar. Please wait until the process is fully completed.
- Once the restore is completed successfully, the system will display a notification that the data restore has finished.
- Click the Restart button to restart the application and apply the restored data.
- After the application restarts, the system will be locked. Enter the key to activate and use the application again.
4. Start Restore using the Upload File method
- After uploading the file, click Start Restore to begin the restore process.
- After clicking the Start Restore button, the system will display a window to enter the password.
- Enter the password obtained during the backup process, then click Yes, Restore to confirm and continue the restore process.
- Once the restore is confirmed, the system will display a progress bar. Please wait until the process is fully completed.
- Once the restore is completed successfully, the system will display a notification that the data restore has finished.
- Click the Restart button to restart the application and apply the restored data.
- After the application restarts, the system will be locked. Enter the key to activate and use the application again.
By following the steps above, users can easily manage backup & restore as needed on the TAKAKRYPT platform.