Viewing docs for Dokploy v0.3.1
published on Tuesday, Sep 29, 2026 by dimeskigj
published on Tuesday, Sep 29, 2026 by dimeskigj
Viewing docs for Dokploy v0.3.1
published on Tuesday, Sep 29, 2026 by dimeskigj
published on Tuesday, Sep 29, 2026 by dimeskigj
A scheduled Dokploy database backup. Exactly one of postgresId, mysqlId, mariadbId, or mongoId must be set.
Create Backup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Backup(name: string, args: BackupArgs, opts?: CustomResourceOptions);@overload
def Backup(resource_name: str,
args: BackupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Backup(resource_name: str,
opts: Optional[ResourceOptions] = None,
database: Optional[str] = None,
destination_id: Optional[str] = None,
prefix: Optional[str] = None,
schedule: Optional[str] = None,
enabled: Optional[bool] = None,
keep_latest_count: Optional[int] = None,
mariadb_id: Optional[str] = None,
mongo_id: Optional[str] = None,
mysql_id: Optional[str] = None,
postgres_id: Optional[str] = None)func NewBackup(ctx *Context, name string, args BackupArgs, opts ...ResourceOption) (*Backup, error)public Backup(string name, BackupArgs args, CustomResourceOptions? opts = null)
public Backup(String name, BackupArgs args)
public Backup(String name, BackupArgs args, CustomResourceOptions options)
type: dokploy:Backup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "dokploy_backup" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args BackupArgs
- 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 BackupArgs
- 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 BackupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BackupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BackupArgs
- 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 backupResource = new Dokploy.Backup("backupResource", new()
{
Database = "string",
DestinationId = "string",
Prefix = "string",
Schedule = "string",
Enabled = false,
KeepLatestCount = 0,
MariadbId = "string",
MongoId = "string",
MysqlId = "string",
PostgresId = "string",
});
example, err := dokploy.NewBackup(ctx, "backupResource", &dokploy.BackupArgs{
Database: pulumi.String("string"),
DestinationId: pulumi.String("string"),
Prefix: pulumi.String("string"),
Schedule: pulumi.String("string"),
Enabled: pulumi.Bool(false),
KeepLatestCount: pulumi.Int(0),
MariadbId: pulumi.String("string"),
MongoId: pulumi.String("string"),
MysqlId: pulumi.String("string"),
PostgresId: pulumi.String("string"),
})
resource "dokploy_backup" "backupResource" {
pulumi {
replace_on_changes = [mariadb_id, mongo_id, mysql_id, postgres_id]
}
lifecycle {
create_before_destroy = true
}
database = "string"
destination_id = "string"
prefix = "string"
schedule = "string"
enabled = false
keep_latest_count = 0
mariadb_id = "string"
mongo_id = "string"
mysql_id = "string"
postgres_id = "string"
}
var backupResource = new Backup("backupResource", BackupArgs.builder()
.database("string")
.destinationId("string")
.prefix("string")
.schedule("string")
.enabled(false)
.keepLatestCount(0)
.mariadbId("string")
.mongoId("string")
.mysqlId("string")
.postgresId("string")
.build());
backup_resource = dokploy.Backup("backupResource",
database="string",
destination_id="string",
prefix="string",
schedule="string",
enabled=False,
keep_latest_count=0,
mariadb_id="string",
mongo_id="string",
mysql_id="string",
postgres_id="string")
const backupResource = new dokploy.Backup("backupResource", {
database: "string",
destinationId: "string",
prefix: "string",
schedule: "string",
enabled: false,
keepLatestCount: 0,
mariadbId: "string",
mongoId: "string",
mysqlId: "string",
postgresId: "string",
});
type: dokploy:Backup
properties:
database: string
destinationId: string
enabled: false
keepLatestCount: 0
mariadbId: string
mongoId: string
mysqlId: string
postgresId: string
prefix: string
schedule: string
Backup 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 Backup resource accepts the following input properties:
- Database string
- The database name inside the target instance to back up.
- Destination
Id string - The destination ID backups are stored to.
- Prefix string
- The backup file prefix.
- Schedule string
- The backup cron schedule.
- Enabled bool
- Whether the backup schedule is enabled.
- Keep
Latest intCount - The optional number of most recent backups to retain.
- Mariadb
Id string - The target MariaDB ID.
- Mongo
Id string - The target MongoDB ID.
- Mysql
Id string - The target MySQL ID.
- Postgres
Id string - The target Postgres ID.
- Database string
- The database name inside the target instance to back up.
- Destination
Id string - The destination ID backups are stored to.
- Prefix string
- The backup file prefix.
- Schedule string
- The backup cron schedule.
- Enabled bool
- Whether the backup schedule is enabled.
- Keep
Latest intCount - The optional number of most recent backups to retain.
- Mariadb
Id string - The target MariaDB ID.
- Mongo
Id string - The target MongoDB ID.
- Mysql
Id string - The target MySQL ID.
- Postgres
Id string - The target Postgres ID.
- database string
- The database name inside the target instance to back up.
- destination_
id string - The destination ID backups are stored to.
- prefix string
- The backup file prefix.
- schedule string
- The backup cron schedule.
- enabled bool
- Whether the backup schedule is enabled.
- keep_
latest_ numbercount - The optional number of most recent backups to retain.
- mariadb_
id string - The target MariaDB ID.
- mongo_
id string - The target MongoDB ID.
- mysql_
id string - The target MySQL ID.
- postgres_
id string - The target Postgres ID.
- database String
- The database name inside the target instance to back up.
- destination
Id String - The destination ID backups are stored to.
- prefix String
- The backup file prefix.
- schedule String
- The backup cron schedule.
- enabled Boolean
- Whether the backup schedule is enabled.
- keep
Latest IntegerCount - The optional number of most recent backups to retain.
- mariadb
Id String - The target MariaDB ID.
- mongo
Id String - The target MongoDB ID.
- mysql
Id String - The target MySQL ID.
- postgres
Id String - The target Postgres ID.
- database string
- The database name inside the target instance to back up.
- destination
Id string - The destination ID backups are stored to.
- prefix string
- The backup file prefix.
- schedule string
- The backup cron schedule.
- enabled boolean
- Whether the backup schedule is enabled.
- keep
Latest numberCount - The optional number of most recent backups to retain.
- mariadb
Id string - The target MariaDB ID.
- mongo
Id string - The target MongoDB ID.
- mysql
Id string - The target MySQL ID.
- postgres
Id string - The target Postgres ID.
- database str
- The database name inside the target instance to back up.
- destination_
id str - The destination ID backups are stored to.
- prefix str
- The backup file prefix.
- schedule str
- The backup cron schedule.
- enabled bool
- Whether the backup schedule is enabled.
- keep_
latest_ intcount - The optional number of most recent backups to retain.
- mariadb_
id str - The target MariaDB ID.
- mongo_
id str - The target MongoDB ID.
- mysql_
id str - The target MySQL ID.
- postgres_
id str - The target Postgres ID.
- database String
- The database name inside the target instance to back up.
- destination
Id String - The destination ID backups are stored to.
- prefix String
- The backup file prefix.
- schedule String
- The backup cron schedule.
- enabled Boolean
- Whether the backup schedule is enabled.
- keep
Latest NumberCount - The optional number of most recent backups to retain.
- mariadb
Id String - The target MariaDB ID.
- mongo
Id String - The target MongoDB ID.
- mysql
Id String - The target MySQL ID.
- postgres
Id String - The target Postgres ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the Backup resource produces the following output properties:
Package Details
- Repository
- dokploy dimeskigj/pulumi-dokploy
- License
- Apache-2.0
Viewing docs for Dokploy v0.3.1
published on Tuesday, Sep 29, 2026 by dimeskigj
published on Tuesday, Sep 29, 2026 by dimeskigj