published on Tuesday, Sep 29, 2026 by dimeskigj
published on Tuesday, Sep 29, 2026 by dimeskigj
A scheduled Dokploy volume backup for an application or Compose service. Exactly one of applicationId or composeId must be set.
Create VolumeBackup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VolumeBackup(name: string, args: VolumeBackupArgs, opts?: CustomResourceOptions);@overload
def VolumeBackup(resource_name: str,
args: VolumeBackupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VolumeBackup(resource_name: str,
opts: Optional[ResourceOptions] = None,
cron_expression: Optional[str] = None,
destination_id: Optional[str] = None,
name: Optional[str] = None,
prefix: Optional[str] = None,
volume_name: Optional[str] = None,
application_id: Optional[str] = None,
compose_id: Optional[str] = None,
enabled: Optional[bool] = None,
keep_latest_count: Optional[int] = None,
service_name: Optional[str] = None,
turn_off: Optional[bool] = None)func NewVolumeBackup(ctx *Context, name string, args VolumeBackupArgs, opts ...ResourceOption) (*VolumeBackup, error)public VolumeBackup(string name, VolumeBackupArgs args, CustomResourceOptions? opts = null)
public VolumeBackup(String name, VolumeBackupArgs args)
public VolumeBackup(String name, VolumeBackupArgs args, CustomResourceOptions options)
type: dokploy:VolumeBackup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "dokploy_volume_backup" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VolumeBackupArgs
- 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 VolumeBackupArgs
- 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 VolumeBackupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VolumeBackupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VolumeBackupArgs
- 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 volumeBackupResource = new Dokploy.VolumeBackup("volumeBackupResource", new()
{
CronExpression = "string",
DestinationId = "string",
Name = "string",
Prefix = "string",
VolumeName = "string",
ApplicationId = "string",
ComposeId = "string",
Enabled = false,
KeepLatestCount = 0,
ServiceName = "string",
TurnOff = false,
});
example, err := dokploy.NewVolumeBackup(ctx, "volumeBackupResource", &dokploy.VolumeBackupArgs{
CronExpression: pulumi.String("string"),
DestinationId: pulumi.String("string"),
Name: pulumi.String("string"),
Prefix: pulumi.String("string"),
VolumeName: pulumi.String("string"),
ApplicationId: pulumi.String("string"),
ComposeId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
KeepLatestCount: pulumi.Int(0),
ServiceName: pulumi.String("string"),
TurnOff: pulumi.Bool(false),
})
resource "dokploy_volume_backup" "volumeBackupResource" {
pulumi {
replace_on_changes = [application_id, compose_id, service_name]
}
lifecycle {
create_before_destroy = true
}
cron_expression = "string"
destination_id = "string"
name = "string"
prefix = "string"
volume_name = "string"
application_id = "string"
compose_id = "string"
enabled = false
keep_latest_count = 0
service_name = "string"
turn_off = false
}
var volumeBackupResource = new VolumeBackup("volumeBackupResource", VolumeBackupArgs.builder()
.cronExpression("string")
.destinationId("string")
.name("string")
.prefix("string")
.volumeName("string")
.applicationId("string")
.composeId("string")
.enabled(false)
.keepLatestCount(0)
.serviceName("string")
.turnOff(false)
.build());
volume_backup_resource = dokploy.VolumeBackup("volumeBackupResource",
cron_expression="string",
destination_id="string",
name="string",
prefix="string",
volume_name="string",
application_id="string",
compose_id="string",
enabled=False,
keep_latest_count=0,
service_name="string",
turn_off=False)
const volumeBackupResource = new dokploy.VolumeBackup("volumeBackupResource", {
cronExpression: "string",
destinationId: "string",
name: "string",
prefix: "string",
volumeName: "string",
applicationId: "string",
composeId: "string",
enabled: false,
keepLatestCount: 0,
serviceName: "string",
turnOff: false,
});
type: dokploy:VolumeBackup
properties:
applicationId: string
composeId: string
cronExpression: string
destinationId: string
enabled: false
keepLatestCount: 0
name: string
prefix: string
serviceName: string
turnOff: false
volumeName: string
VolumeBackup 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 VolumeBackup resource accepts the following input properties:
- Cron
Expression string - The backup cron schedule.
- Destination
Id string - The destination ID backups are stored to.
- Name string
- The volume backup resource name.
- Prefix string
- The backup file prefix.
- Volume
Name string - The Docker volume name to back up.
- Application
Id string - The optional target application ID.
- Compose
Id string - The optional target Compose ID.
- Enabled bool
- Whether the backup schedule is enabled.
- Keep
Latest intCount - The optional number of most recent backups to retain.
- Service
Name string - The Compose service name that owns the volume.
- Turn
Off bool - Whether to turn the backup off without deleting it.
- Cron
Expression string - The backup cron schedule.
- Destination
Id string - The destination ID backups are stored to.
- Name string
- The volume backup resource name.
- Prefix string
- The backup file prefix.
- Volume
Name string - The Docker volume name to back up.
- Application
Id string - The optional target application ID.
- Compose
Id string - The optional target Compose ID.
- Enabled bool
- Whether the backup schedule is enabled.
- Keep
Latest intCount - The optional number of most recent backups to retain.
- Service
Name string - The Compose service name that owns the volume.
- Turn
Off bool - Whether to turn the backup off without deleting it.
- cron_
expression string - The backup cron schedule.
- destination_
id string - The destination ID backups are stored to.
- name string
- The volume backup resource name.
- prefix string
- The backup file prefix.
- volume_
name string - The Docker volume name to back up.
- application_
id string - The optional target application ID.
- compose_
id string - The optional target Compose ID.
- enabled bool
- Whether the backup schedule is enabled.
- keep_
latest_ numbercount - The optional number of most recent backups to retain.
- service_
name string - The Compose service name that owns the volume.
- turn_
off bool - Whether to turn the backup off without deleting it.
- cron
Expression String - The backup cron schedule.
- destination
Id String - The destination ID backups are stored to.
- name String
- The volume backup resource name.
- prefix String
- The backup file prefix.
- volume
Name String - The Docker volume name to back up.
- application
Id String - The optional target application ID.
- compose
Id String - The optional target Compose ID.
- enabled Boolean
- Whether the backup schedule is enabled.
- keep
Latest IntegerCount - The optional number of most recent backups to retain.
- service
Name String - The Compose service name that owns the volume.
- turn
Off Boolean - Whether to turn the backup off without deleting it.
- cron
Expression string - The backup cron schedule.
- destination
Id string - The destination ID backups are stored to.
- name string
- The volume backup resource name.
- prefix string
- The backup file prefix.
- volume
Name string - The Docker volume name to back up.
- application
Id string - The optional target application ID.
- compose
Id string - The optional target Compose ID.
- enabled boolean
- Whether the backup schedule is enabled.
- keep
Latest numberCount - The optional number of most recent backups to retain.
- service
Name string - The Compose service name that owns the volume.
- turn
Off boolean - Whether to turn the backup off without deleting it.
- cron_
expression str - The backup cron schedule.
- destination_
id str - The destination ID backups are stored to.
- name str
- The volume backup resource name.
- prefix str
- The backup file prefix.
- volume_
name str - The Docker volume name to back up.
- application_
id str - The optional target application ID.
- compose_
id str - The optional target Compose ID.
- enabled bool
- Whether the backup schedule is enabled.
- keep_
latest_ intcount - The optional number of most recent backups to retain.
- service_
name str - The Compose service name that owns the volume.
- turn_
off bool - Whether to turn the backup off without deleting it.
- cron
Expression String - The backup cron schedule.
- destination
Id String - The destination ID backups are stored to.
- name String
- The volume backup resource name.
- prefix String
- The backup file prefix.
- volume
Name String - The Docker volume name to back up.
- application
Id String - The optional target application ID.
- compose
Id String - The optional target Compose ID.
- enabled Boolean
- Whether the backup schedule is enabled.
- keep
Latest NumberCount - The optional number of most recent backups to retain.
- service
Name String - The Compose service name that owns the volume.
- turn
Off Boolean - Whether to turn the backup off without deleting it.
Outputs
All input properties are implicitly available as output properties. Additionally, the VolumeBackup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Volume
Backup stringId - The stable Dokploy volume backup ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Volume
Backup stringId - The stable Dokploy volume backup ID.
- id string
- The provider-assigned unique ID for this managed resource.
- volume_
backup_ stringid - The stable Dokploy volume backup ID.
- id String
- The provider-assigned unique ID for this managed resource.
- volume
Backup StringId - The stable Dokploy volume backup ID.
- id string
- The provider-assigned unique ID for this managed resource.
- volume
Backup stringId - The stable Dokploy volume backup ID.
- id str
- The provider-assigned unique ID for this managed resource.
- volume_
backup_ strid - The stable Dokploy volume backup ID.
- id String
- The provider-assigned unique ID for this managed resource.
- volume
Backup StringId - The stable Dokploy volume backup ID.
Package Details
- Repository
- dokploy dimeskigj/pulumi-dokploy
- License
- Apache-2.0
published on Tuesday, Sep 29, 2026 by dimeskigj