Backup and Restore Data Flow Server
This guide outlines the steps to back up and restore a PortSIP Data Flow server. These procedures are designed to ensure data integrity during system upgrades, migrations, or disaster recovery.
Important Notes:
Backup Storage: Backup files and data must be stored on a separate server or external storage device, not on the Data Flow server used for daily operations.
Backup Validation: Regularly test your backups by performing restores in a non-production environment to ensure their reliability.
Backup Methods
1. Using Virtual Machine or Cloud Snapshots (Recommended)
If your PortSIP Data Flow Server is running in a virtualized environment (e.g., VMware, KVM) or on a cloud platform, you can use the platform's native tools to create a snapshot. Snapshots capture the entire system state, providing a fast and reliable backup solution.
Best Practice:
Regularly test snapshot restores to ensure the Data Flow server can be successfully recovered in case of failure.
Restoring from a Snapshot:
Follow the restore procedure provided by your virtualization or cloud platform.
Start the Data Flow services.
Verify that the Data Flow features work as expected.
2. Backing Up Data
When you install PortSIP Data Flow, the -p parameter specifies the parent directory for Data Flow data storage.
Installation Example
Backup Procedure (Default Parent Path: /var/lib/portsip)
/var/lib/portsip)Stop the Data Flow Server:
Create the Backup Directory and Copy Data:
Restart the Data Flow Server (if necessary):
Restoring Backup Data
1. Restoring to the Same Server
Step 1: Stop the Data Flow Server and Remove Existing Data:
Step 2: Restore the Backup Data:
Step 3: Start the Data Flow Server with Restored Data:
Expected Result: The Data Flow server is successfully restored on the same server.
2. Restoring to a New Server
Note: When restoring to a new server, the Data Flow server will be automatically upgraded to the latest version.
Prepare the New Linux Server: Ensure the new server has no previous installation of the PortSIP Data Flow Server.
Copy the Backup Data to the New Server:
Follow the "Install Data Flow Service" guide to install the Data Flow server on the new server, using the restored file paths and the new IP address.
Expected Result: The newly installed Data Flow server successfully restores the backup data.
Notes and Best Practices
Permissions (888:888): Incorrect ownership or permissions on the data folders may prevent the Data Flow server from starting correctly. Ensure that permissions are set as shown in the restore steps.
IP Address Changes: Always use the new IP address when restoring the Data Flow server to a new server to avoid network issues.
Backup Validation: Periodically test restores to confirm the integrity of your backups and ensure the system can be recovered when needed.
Last updated