1. Packages
  2. Volcengine
  3. API Docs
  4. rds_postgresql
  5. BackupPolicy
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
volcengine logo
Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine

    Provides a resource to manage rds postgresql backup policy

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const example = new volcengine.rds_postgresql.BackupPolicy("example", {
        backupRetentionPeriod: 7,
        dataIncrBackupPeriods: "Tuesday,Sunday",
        fullBackupPeriod: "Monday,Wednesday,Friday",
        fullBackupTime: "18:00Z-19:00Z",
        hourlyIncrBackupEnable: true,
        incrementBackupFrequency: 12,
        instanceId: "postgres-72715e0d9f58",
        walLogSpaceLimitEnable: false,
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    example = volcengine.rds_postgresql.BackupPolicy("example",
        backup_retention_period=7,
        data_incr_backup_periods="Tuesday,Sunday",
        full_backup_period="Monday,Wednesday,Friday",
        full_backup_time="18:00Z-19:00Z",
        hourly_incr_backup_enable=True,
        increment_backup_frequency=12,
        instance_id="postgres-72715e0d9f58",
        wal_log_space_limit_enable=False)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds_postgresql"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rds_postgresql.NewBackupPolicy(ctx, "example", &rds_postgresql.BackupPolicyArgs{
    			BackupRetentionPeriod:    pulumi.Int(7),
    			DataIncrBackupPeriods:    pulumi.String("Tuesday,Sunday"),
    			FullBackupPeriod:         pulumi.String("Monday,Wednesday,Friday"),
    			FullBackupTime:           pulumi.String("18:00Z-19:00Z"),
    			HourlyIncrBackupEnable:   pulumi.Bool(true),
    			IncrementBackupFrequency: pulumi.Int(12),
    			InstanceId:               pulumi.String("postgres-72715e0d9f58"),
    			WalLogSpaceLimitEnable:   pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Volcengine.Rds_postgresql.BackupPolicy("example", new()
        {
            BackupRetentionPeriod = 7,
            DataIncrBackupPeriods = "Tuesday,Sunday",
            FullBackupPeriod = "Monday,Wednesday,Friday",
            FullBackupTime = "18:00Z-19:00Z",
            HourlyIncrBackupEnable = true,
            IncrementBackupFrequency = 12,
            InstanceId = "postgres-72715e0d9f58",
            WalLogSpaceLimitEnable = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.rds_postgresql.BackupPolicy;
    import com.pulumi.volcengine.rds_postgresql.BackupPolicyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new BackupPolicy("example", BackupPolicyArgs.builder()        
                .backupRetentionPeriod(7)
                .dataIncrBackupPeriods("Tuesday,Sunday")
                .fullBackupPeriod("Monday,Wednesday,Friday")
                .fullBackupTime("18:00Z-19:00Z")
                .hourlyIncrBackupEnable(true)
                .incrementBackupFrequency(12)
                .instanceId("postgres-72715e0d9f58")
                .walLogSpaceLimitEnable(false)
                .build());
    
        }
    }
    
    resources:
      example:
        type: volcengine:rds_postgresql:BackupPolicy
        properties:
          backupRetentionPeriod: 7
          dataIncrBackupPeriods: Tuesday,Sunday
          fullBackupPeriod: Monday,Wednesday,Friday
          fullBackupTime: 18:00Z-19:00Z
          hourlyIncrBackupEnable: true
          incrementBackupFrequency: 12
          instanceId: postgres-72715e0d9f58
          walLogSpaceLimitEnable: false
    

    Create BackupPolicy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new BackupPolicy(name: string, args: BackupPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def BackupPolicy(resource_name: str,
                     args: BackupPolicyArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def BackupPolicy(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     instance_id: Optional[str] = None,
                     backup_retention_period: Optional[int] = None,
                     data_incr_backup_periods: Optional[str] = None,
                     full_backup_period: Optional[str] = None,
                     full_backup_time: Optional[str] = None,
                     hourly_incr_backup_enable: Optional[bool] = None,
                     increment_backup_frequency: Optional[int] = None,
                     wal_log_space_limit_enable: Optional[bool] = None)
    func NewBackupPolicy(ctx *Context, name string, args BackupPolicyArgs, opts ...ResourceOption) (*BackupPolicy, error)
    public BackupPolicy(string name, BackupPolicyArgs args, CustomResourceOptions? opts = null)
    public BackupPolicy(String name, BackupPolicyArgs args)
    public BackupPolicy(String name, BackupPolicyArgs args, CustomResourceOptions options)
    
    type: volcengine:rds_postgresql:BackupPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args BackupPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args BackupPolicyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args BackupPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BackupPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BackupPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var volcengineBackupPolicyResource = new Volcengine.Rds_postgresql.BackupPolicy("volcengineBackupPolicyResource", new()
    {
        InstanceId = "string",
        BackupRetentionPeriod = 0,
        DataIncrBackupPeriods = "string",
        FullBackupPeriod = "string",
        FullBackupTime = "string",
        HourlyIncrBackupEnable = false,
        IncrementBackupFrequency = 0,
        WalLogSpaceLimitEnable = false,
    });
    
    example, err := rds_postgresql.NewBackupPolicy(ctx, "volcengineBackupPolicyResource", &rds_postgresql.BackupPolicyArgs{
    	InstanceId:               pulumi.String("string"),
    	BackupRetentionPeriod:    pulumi.Int(0),
    	DataIncrBackupPeriods:    pulumi.String("string"),
    	FullBackupPeriod:         pulumi.String("string"),
    	FullBackupTime:           pulumi.String("string"),
    	HourlyIncrBackupEnable:   pulumi.Bool(false),
    	IncrementBackupFrequency: pulumi.Int(0),
    	WalLogSpaceLimitEnable:   pulumi.Bool(false),
    })
    
    var volcengineBackupPolicyResource = new com.pulumi.volcengine.rds_postgresql.BackupPolicy("volcengineBackupPolicyResource", com.pulumi.volcengine.rds_postgresql.BackupPolicyArgs.builder()
        .instanceId("string")
        .backupRetentionPeriod(0)
        .dataIncrBackupPeriods("string")
        .fullBackupPeriod("string")
        .fullBackupTime("string")
        .hourlyIncrBackupEnable(false)
        .incrementBackupFrequency(0)
        .walLogSpaceLimitEnable(false)
        .build());
    
    volcengine_backup_policy_resource = volcengine.rds_postgresql.BackupPolicy("volcengineBackupPolicyResource",
        instance_id="string",
        backup_retention_period=0,
        data_incr_backup_periods="string",
        full_backup_period="string",
        full_backup_time="string",
        hourly_incr_backup_enable=False,
        increment_backup_frequency=0,
        wal_log_space_limit_enable=False)
    
    const volcengineBackupPolicyResource = new volcengine.rds_postgresql.BackupPolicy("volcengineBackupPolicyResource", {
        instanceId: "string",
        backupRetentionPeriod: 0,
        dataIncrBackupPeriods: "string",
        fullBackupPeriod: "string",
        fullBackupTime: "string",
        hourlyIncrBackupEnable: false,
        incrementBackupFrequency: 0,
        walLogSpaceLimitEnable: false,
    });
    
    type: volcengine:rds_postgresql:BackupPolicy
    properties:
        backupRetentionPeriod: 0
        dataIncrBackupPeriods: string
        fullBackupPeriod: string
        fullBackupTime: string
        hourlyIncrBackupEnable: false
        incrementBackupFrequency: 0
        instanceId: string
        walLogSpaceLimitEnable: false
    

    BackupPolicy Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The BackupPolicy resource accepts the following input properties:

    InstanceId string
    The id of the PostgreSQL instance.
    BackupRetentionPeriod int
    The number of days to retain backups, with a value range of 7 to 365.
    DataIncrBackupPeriods string
    The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
    FullBackupPeriod string
    Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
    FullBackupTime string
    The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
    HourlyIncrBackupEnable bool
    Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
    IncrementBackupFrequency int
    The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
    WalLogSpaceLimitEnable bool
    Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
    InstanceId string
    The id of the PostgreSQL instance.
    BackupRetentionPeriod int
    The number of days to retain backups, with a value range of 7 to 365.
    DataIncrBackupPeriods string
    The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
    FullBackupPeriod string
    Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
    FullBackupTime string
    The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
    HourlyIncrBackupEnable bool
    Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
    IncrementBackupFrequency int
    The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
    WalLogSpaceLimitEnable bool
    Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
    instanceId String
    The id of the PostgreSQL instance.
    backupRetentionPeriod Integer
    The number of days to retain backups, with a value range of 7 to 365.
    dataIncrBackupPeriods String
    The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
    fullBackupPeriod String
    Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
    fullBackupTime String
    The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
    hourlyIncrBackupEnable Boolean
    Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
    incrementBackupFrequency Integer
    The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
    walLogSpaceLimitEnable Boolean
    Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
    instanceId string
    The id of the PostgreSQL instance.
    backupRetentionPeriod number
    The number of days to retain backups, with a value range of 7 to 365.
    dataIncrBackupPeriods string
    The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
    fullBackupPeriod string
    Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
    fullBackupTime string
    The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
    hourlyIncrBackupEnable boolean
    Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
    incrementBackupFrequency number
    The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
    walLogSpaceLimitEnable boolean
    Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
    instance_id str
    The id of the PostgreSQL instance.
    backup_retention_period int
    The number of days to retain backups, with a value range of 7 to 365.
    data_incr_backup_periods str
    The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
    full_backup_period str
    Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
    full_backup_time str
    The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
    hourly_incr_backup_enable bool
    Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
    increment_backup_frequency int
    The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
    wal_log_space_limit_enable bool
    Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
    instanceId String
    The id of the PostgreSQL instance.
    backupRetentionPeriod Number
    The number of days to retain backups, with a value range of 7 to 365.
    dataIncrBackupPeriods String
    The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
    fullBackupPeriod String
    Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
    fullBackupTime String
    The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
    hourlyIncrBackupEnable Boolean
    Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
    incrementBackupFrequency Number
    The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
    walLogSpaceLimitEnable Boolean
    Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the BackupPolicy resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing BackupPolicy Resource

    Get an existing BackupPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: BackupPolicyState, opts?: CustomResourceOptions): BackupPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            backup_retention_period: Optional[int] = None,
            data_incr_backup_periods: Optional[str] = None,
            full_backup_period: Optional[str] = None,
            full_backup_time: Optional[str] = None,
            hourly_incr_backup_enable: Optional[bool] = None,
            increment_backup_frequency: Optional[int] = None,
            instance_id: Optional[str] = None,
            wal_log_space_limit_enable: Optional[bool] = None) -> BackupPolicy
    func GetBackupPolicy(ctx *Context, name string, id IDInput, state *BackupPolicyState, opts ...ResourceOption) (*BackupPolicy, error)
    public static BackupPolicy Get(string name, Input<string> id, BackupPolicyState? state, CustomResourceOptions? opts = null)
    public static BackupPolicy get(String name, Output<String> id, BackupPolicyState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:rds_postgresql:BackupPolicy    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BackupRetentionPeriod int
    The number of days to retain backups, with a value range of 7 to 365.
    DataIncrBackupPeriods string
    The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
    FullBackupPeriod string
    Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
    FullBackupTime string
    The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
    HourlyIncrBackupEnable bool
    Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
    IncrementBackupFrequency int
    The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
    InstanceId string
    The id of the PostgreSQL instance.
    WalLogSpaceLimitEnable bool
    Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
    BackupRetentionPeriod int
    The number of days to retain backups, with a value range of 7 to 365.
    DataIncrBackupPeriods string
    The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
    FullBackupPeriod string
    Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
    FullBackupTime string
    The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
    HourlyIncrBackupEnable bool
    Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
    IncrementBackupFrequency int
    The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
    InstanceId string
    The id of the PostgreSQL instance.
    WalLogSpaceLimitEnable bool
    Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
    backupRetentionPeriod Integer
    The number of days to retain backups, with a value range of 7 to 365.
    dataIncrBackupPeriods String
    The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
    fullBackupPeriod String
    Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
    fullBackupTime String
    The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
    hourlyIncrBackupEnable Boolean
    Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
    incrementBackupFrequency Integer
    The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
    instanceId String
    The id of the PostgreSQL instance.
    walLogSpaceLimitEnable Boolean
    Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
    backupRetentionPeriod number
    The number of days to retain backups, with a value range of 7 to 365.
    dataIncrBackupPeriods string
    The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
    fullBackupPeriod string
    Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
    fullBackupTime string
    The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
    hourlyIncrBackupEnable boolean
    Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
    incrementBackupFrequency number
    The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
    instanceId string
    The id of the PostgreSQL instance.
    walLogSpaceLimitEnable boolean
    Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
    backup_retention_period int
    The number of days to retain backups, with a value range of 7 to 365.
    data_incr_backup_periods str
    The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
    full_backup_period str
    Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
    full_backup_time str
    The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
    hourly_incr_backup_enable bool
    Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
    increment_backup_frequency int
    The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
    instance_id str
    The id of the PostgreSQL instance.
    wal_log_space_limit_enable bool
    Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.
    backupRetentionPeriod Number
    The number of days to retain backups, with a value range of 7 to 365.
    dataIncrBackupPeriods String
    The incremental backup method follows the backup frequency for normal increments, with multiple values separated by English commas (,). The selected values must not overlap with the full backup cycle. Can select at most six days a week for incremental backup.
    fullBackupPeriod String
    Full backup period. Separate multiple values with an English comma (,).Select at least one day per week for a full backup.
    fullBackupTime String
    The time when the backup task is executed. Format: HH:mmZ-HH:mmZ (UTC time).
    hourlyIncrBackupEnable Boolean
    Whether to enable the high-frequency backup function. To disable incremental backup, need to pass an empty string for the parameter data_incr_backup_periods and pass false for the parameter hourly_incr_backup_enable.
    incrementBackupFrequency Number
    The method of incremental backup is the backup frequency for high-frequency increments. The Unit: hours. The valid values are 1, 2, 4, 6, and 12.
    instanceId String
    The id of the PostgreSQL instance.
    walLogSpaceLimitEnable Boolean
    Status of the local remaining available space protection function. When enabled, it will automatically start clearing the earliest local WAL logs when the total storage space usage rate of the instance exceeds 80% or the remaining space is less than 5GB, until the total space usage rate is below 80% and the remaining space is greater than 5GB.

    Import

    RdsPostgresqlBackupPolicy can be imported using the id, e.g.

    $ pulumi import volcengine:rds_postgresql/backupPolicy:BackupPolicy default resource_id
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.43 published on Friday, Jan 16, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate