DB Backup and Restore
Users can set up PostgreSQL(DBaaS) backup through the Samsung Cloud Platform Console and restore using backed up files.
Backing Up PostgreSQL(DBaaS)
PostgreSQL(DBaaS) provides data backup functionality based on its own backup commands. Additionally, through backup history viewing and backup file deletion functionality, it provides a backup environment optimized for data protection and management.
Setting Up Backup
For PostgreSQL(DBaaS) backup setup method, please refer to Creating PostgreSQL(DBaaS).
Follow these steps to modify backup settings for created resources.
- For stable backup, it is recommended to add a separate BACKUP storage or sufficiently increase storage capacity. Especially when backup target data exceeds 100 GB and there are many data changes, please secure additional storage corresponding to approximately 60% of data capacity. For adding and increasing storage, please refer to Adding PostgreSQL(DBaaS) Storage, Expanding PostgreSQL(DBaaS) Storage guides.
- When backup is set, backup is performed at the specified time after the set time, and additional charges occur depending on backup capacity.
- When backup setting is changed to Not Set, backup execution stops immediately, and stored backup data is deleted and can no longer be used.
Follow these steps to set up backup.
- Click the All Services > Database > PostgreSQL(DBaaS) menu. You will move to the PostgreSQL(DBaaS)’s Service Home page.
- On the Service Home page, click the PostgreSQL(DBaaS) menu. You will move to the PostgreSQL(DBaaS) List page.
- On the PostgreSQL(DBaaS) List page, click the resource to set backup. You will move to the PostgreSQL(DBaaS) Detail page.
- Click the Modify button in the backup item. The Backup Settings popup window will open.
- To set backup, click Use in the Backup Settings popup window, select retention period, backup start time, and Archive backup cycle, then click the Confirm button.
- To stop backup settings, uncheck Use in the Backup Settings popup window and click the Confirm button.
Viewing Backup History
Follow these steps to view backup history.
- Click the All Services > Database > PostgreSQL(DBaaS) menu. You will move to the PostgreSQL(DBaaS)’s Service Home page.
- On the Service Home page, click the PostgreSQL(DBaaS) menu. You will move to the PostgreSQL(DBaaS) List page.
- On the PostgreSQL(DBaaS) List page, click the resource to view backup history. You will move to the PostgreSQL(DBaaS) Detail page.
- Click the Backup History button. The Backup History popup window will open.
- In the Backup History popup window, you can check backup status, version, backup start datetime, backup completion datetime, and capacity.
Deleting Backup Files
Follow these steps to delete backup history.
- Click the All Services > Database > PostgreSQL(DBaaS) menu. You will move to the PostgreSQL(DBaaS)’s Service Home page.
- On the Service Home page, click the PostgreSQL(DBaaS) menu. You will move to the PostgreSQL(DBaaS) List page.
- On the PostgreSQL(DBaaS) List page, click the resource to view backup history. You will move to the PostgreSQL(DBaaS) Detail page.
- Click the Backup History button. The Backup History popup window will open.
- In the Backup History popup window, check the file to delete and then click the Delete button.
Restoring PostgreSQL(DBaaS)
In case of failure or data loss requiring restoration from backup files, you can restore based on a specific point in time through the restore function. When PostgreSQL(DBaaS) restore is performed, a new server is created with the OS image at the initial provisioning time, DB is installed with the version of that backup time, and restoration proceeds with DB configuration information and data.
Follow these steps to restore PostgreSQL(DBaaS).
- Click the All Services > Database > PostgreSQL(DBaaS) menu. You will move to the PostgreSQL(DBaaS)’s Service Home page.
- On the Service Home page, click the PostgreSQL(DBaaS) menu. You will move to the PostgreSQL(DBaaS) List page.
- On the PostgreSQL(DBaaS) Resource List page, click the resource to restore. You will move to the PostgreSQL(DBaaS) Detail page.
- Click the Database Restore button. You will move to the Database Restore page.
- Enter the corresponding information in the Database Restore Configuration area and then click the Complete button.
Category RequiredDetailed Description Restore Type Required Setting the point in time user wants to restore - Backup Point(Recommended): Restore based on backup file. Select from the list of backup file time points displayed in the list
- User-Specified Point: Restore to a point user wants within the backupable time range. The recoverable period can restore from the initial backup start time to 1 hour/30 minutes/10 minutes/5 minutes before current time according to Archive backup cycle setting value. Select the date and time to backup
Server Name Prefix Required Server name of restore DB - Enter 3~16 characters starting with lowercase English letters, using lowercase letters, numbers, and special characters(
-)
- Actual server name is created with a postfix like 001, 002 attached based on server name
Cluster Name Required Cluster name of restore DB - Enter 3 ~ 20 characters using English letters
- Cluster is a unit that groups multiple servers
Service Type > Server Type Required Server type where restore DB will be installed - Standard: Standard specifications commonly used
- High Capacity: Large-capacity servers with 24vCore or more
Service Type > Planned Compute Optional Status of resources with Planned Compute set - In Use: Number of resources with Planned Compute set that are currently in use
- Set: Number of resources with Planned Compute set
- Coverage Preview: Amount applied by Planned Compute per resource
- Create Planned Compute Service: Moves to Planned Compute service application page
- For details, refer to Applying for Planned Compute
Service Type > Block Storage Required Block Storage settings used by restore DB - Basic OS: Area where DB engine is installed
- DATA: Storage area for table data and archive files, etc.
- Applied identically with Storage type set in original cluster
- Enter capacity as a multiple of 8 in the range of 16 ~ 5,120
- Additional: Storage area for DATA, Archive, TEMP, Backup data
- Applied identically with Storage type set in original cluster
- Only DATA, TEMP, Archive purposes can be added in restore DB.
- Select Use and then enter storage purpose and capacity
- To add storage, click the + button, to delete, click the x button
- Capacity can be entered as a multiple of 8 in the range of 16 ~ 5,120, and can create up to 9
Database Username Required Database username set in original DB Database Port Number Required Database Port number set in original DB IP Access Control Optional IP address to access restore DB - Enter in IP format (example:
192.168.10.1) or CIDR format (example:192.168.10.1/32,192.168.10.1/32) and click the Add button
- To delete entered IP, click the x button next to the entered IP
Maintenance Period Optional DB maintenance period - When Use is selected, set day of week, start time, and duration
- It is recommended to set a maintenance period for stable DB management. Patching is performed at the set time and service interruption occurs
- If set to Not Used, Samsung SDS is not responsible for problems caused by unapplied patches.
Tags Optional Add tags - Click the Add Tag button and then enter or select Key, Value values
Table. PostgreSQL(DBaaS) Restore Configuration Items