tencent cloud

Feedback

Use Serverless Cloud Function to Transfer Historical Backups of PostgreSQL

Last updated: 2024-03-20 15:43:50
    Currently, TencentDB for PostgreSQL supports retaining backup data for 3 to 7 days. You can also transfer backup files of TencentDB for PostgreSQL to Cloud Object Storage for long-term preservation through Serverless Cloud Function.
    Note:
    Please ensure data pull success through strict configuration and monitoring in the Cloud Object Storage Console. Otherwise, if the backup data in the database is automatically deleted after expiration, it may result in backup data loss.

    Directions

    1. Sign in to the Cloud Object Storage console. Go to Application Integration > Data Backup > PostgreSQL backup, as shown in the figure below:
    
    2. Click Configure Backup Rules to enter the PostgreSQL Backup configuration page. Click Add Function to configure the Serverless Cloud Function to pull the data backup and log backup files of PostgreSQL instances within the specified period.
    
    
    
    3. After configuration, you can view the list of configured backup functions on the PostgreSQL Backup Function page, as shown in the figure below:
    
    4. Once the function is created, you can click More > Trigger > Confirm to trigger the function execution. This function can pull the backup data of TencentDB for PostgreSQL, accessing data for up to the last 7 days.
    
    
    You can also use the default settings for the system to automatically trigger function execution.
    5. Once the backup data pulling is successful, click the corresponding bucket address in the Associated Bucket column to view the saved data.
    
    Note:
    The running log of Serverless Cloud Function can be viewed in the Serverless Cloud Function Console. It is not recommended to directly modify the function for pulling backup from the Serverless Cloud Function Console.
    Pulling historical backups of TencentDB for PostgreSQL may incur related costs. For specific charging details, please refer to Pay-As-You-Go, Pay-As-You-Go, and Product Pricing.
    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support