artifactory.Backup
Explore with Pulumi AI
This resource can be used to manage the automatic and periodic backups of the entire Artifactory instance.
When an artifactory.Backup
resource is configured and enabled to true, backup of the entire Artifactory system will be done automatically and periodically.
The backup process creates a time-stamped directory in the target backup directory.
~>The artifactory.Backup
resource utilizes endpoints which are blocked/removed in SaaS environments (i.e. in Artifactory online), rendering this resource incompatible with Artifactory SaaS environments.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Artifactory = Pulumi.Artifactory;
return await Deployment.RunAsync(() =>
{
// Configure Artifactory Backup system config
var backupConfigName = new Artifactory.Backup("backupConfigName", new()
{
CreateArchive = false,
CronExp = "0 0 12 * * ? *",
Enabled = true,
ExcludeNewRepositories = true,
ExcludedRepositories = new[] {},
ExportMissionControl = true,
Key = "backup_config_name",
RetentionPeriodHours = 1000,
SendMailOnError = true,
VerifyDiskSpace = true,
});
});
package main
import (
"github.com/pulumi/pulumi-artifactory/sdk/v4/go/artifactory"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := artifactory.NewBackup(ctx, "backupConfigName", &artifactory.BackupArgs{
CreateArchive: pulumi.Bool(false),
CronExp: pulumi.String("0 0 12 * * ? *"),
Enabled: pulumi.Bool(true),
ExcludeNewRepositories: pulumi.Bool(true),
ExcludedRepositories: pulumi.StringArray{},
ExportMissionControl: pulumi.Bool(true),
Key: pulumi.String("backup_config_name"),
RetentionPeriodHours: pulumi.Int(1000),
SendMailOnError: pulumi.Bool(true),
VerifyDiskSpace: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.artifactory.Backup;
import com.pulumi.artifactory.BackupArgs;
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 backupConfigName = new Backup("backupConfigName", BackupArgs.builder()
.createArchive(false)
.cronExp("0 0 12 * * ? *")
.enabled(true)
.excludeNewRepositories(true)
.excludedRepositories()
.exportMissionControl(true)
.key("backup_config_name")
.retentionPeriodHours(1000)
.sendMailOnError(true)
.verifyDiskSpace(true)
.build());
}
}
import pulumi
import pulumi_artifactory as artifactory
# Configure Artifactory Backup system config
backup_config_name = artifactory.Backup("backupConfigName",
create_archive=False,
cron_exp="0 0 12 * * ? *",
enabled=True,
exclude_new_repositories=True,
excluded_repositories=[],
export_mission_control=True,
key="backup_config_name",
retention_period_hours=1000,
send_mail_on_error=True,
verify_disk_space=True)
import * as pulumi from "@pulumi/pulumi";
import * as artifactory from "@pulumi/artifactory";
// Configure Artifactory Backup system config
const backupConfigName = new artifactory.Backup("backupConfigName", {
createArchive: false,
cronExp: "0 0 12 * * ? *",
enabled: true,
excludeNewRepositories: true,
excludedRepositories: [],
exportMissionControl: true,
key: "backup_config_name",
retentionPeriodHours: 1000,
sendMailOnError: true,
verifyDiskSpace: true,
});
resources:
# Configure Artifactory Backup system config
backupConfigName:
type: artifactory:Backup
properties:
createArchive: false
cronExp: 0 0 12 * * ? *
enabled: true
excludeNewRepositories: true
excludedRepositories: []
exportMissionControl: true
key: backup_config_name
retentionPeriodHours: 1000
sendMailOnError: true
verifyDiskSpace: true
Create Backup Resource
new Backup(name: string, args: BackupArgs, opts?: CustomResourceOptions);
@overload
def Backup(resource_name: str,
opts: Optional[ResourceOptions] = None,
create_archive: Optional[bool] = None,
cron_exp: Optional[str] = None,
enabled: Optional[bool] = None,
exclude_new_repositories: Optional[bool] = None,
excluded_repositories: Optional[Sequence[str]] = None,
export_mission_control: Optional[bool] = None,
key: Optional[str] = None,
retention_period_hours: Optional[int] = None,
send_mail_on_error: Optional[bool] = None,
verify_disk_space: Optional[bool] = None)
@overload
def Backup(resource_name: str,
args: BackupArgs,
opts: Optional[ResourceOptions] = 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: artifactory:Backup
properties: # The arguments to resource properties.
options: # 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.
- 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.
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
The Backup resource accepts the following input properties:
- Cron
Exp string A valid CRON expression that you can use to control backup frequency. Eg: "0 0 12 * * ? *", "0 0 2 ? * MON-SAT *". Note: please use 7 character format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year. Also, specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by
?
. Incorrect:* 5,7,9 14/2 * * WED,SAT *
, correct:* 5,7,9 14/2 ? * WED,SAT *
. See details in Cron Trigger Tutorial and in Cronexp package readme.- Key string
The unique ID of the artifactory backup config.
- Create
Archive bool If set, backups will be created within a Zip archive (Slow and CPU intensive). Default value is
false
.- Enabled bool
Flag to enable or disable the backup config. Default value is
true
.- Exclude
New boolRepositories When set, new repositories will not be automatically added to the backup. Default value is
false
.- Excluded
Repositories List<string> A list of excluded repositories from the backup. Default is empty list.
- Export
Mission boolControl When set to true, mission control will not be automatically added to the backup. Default value is
false
.- Retention
Period intHours The number of hours to keep a backup before Artifactory will clean it up to free up disk space. Applicable only to non-incremental backups. Default value is 168 hours ie: 7 days.
- Send
Mail boolOn Error If set, all Artifactory administrators will be notified by email if any problem is encountered during backup. Default value is
true
.- Verify
Disk boolSpace If set, Artifactory will verify that the backup target location has enough disk space available to hold the backed up data. If there is not enough space available, Artifactory will abort the backup and write a message in the log file. Applicable only to non-incremental backups.
- Cron
Exp string A valid CRON expression that you can use to control backup frequency. Eg: "0 0 12 * * ? *", "0 0 2 ? * MON-SAT *". Note: please use 7 character format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year. Also, specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by
?
. Incorrect:* 5,7,9 14/2 * * WED,SAT *
, correct:* 5,7,9 14/2 ? * WED,SAT *
. See details in Cron Trigger Tutorial and in Cronexp package readme.- Key string
The unique ID of the artifactory backup config.
- Create
Archive bool If set, backups will be created within a Zip archive (Slow and CPU intensive). Default value is
false
.- Enabled bool
Flag to enable or disable the backup config. Default value is
true
.- Exclude
New boolRepositories When set, new repositories will not be automatically added to the backup. Default value is
false
.- Excluded
Repositories []string A list of excluded repositories from the backup. Default is empty list.
- Export
Mission boolControl When set to true, mission control will not be automatically added to the backup. Default value is
false
.- Retention
Period intHours The number of hours to keep a backup before Artifactory will clean it up to free up disk space. Applicable only to non-incremental backups. Default value is 168 hours ie: 7 days.
- Send
Mail boolOn Error If set, all Artifactory administrators will be notified by email if any problem is encountered during backup. Default value is
true
.- Verify
Disk boolSpace If set, Artifactory will verify that the backup target location has enough disk space available to hold the backed up data. If there is not enough space available, Artifactory will abort the backup and write a message in the log file. Applicable only to non-incremental backups.
- cron
Exp String A valid CRON expression that you can use to control backup frequency. Eg: "0 0 12 * * ? *", "0 0 2 ? * MON-SAT *". Note: please use 7 character format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year. Also, specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by
?
. Incorrect:* 5,7,9 14/2 * * WED,SAT *
, correct:* 5,7,9 14/2 ? * WED,SAT *
. See details in Cron Trigger Tutorial and in Cronexp package readme.- key String
The unique ID of the artifactory backup config.
- create
Archive Boolean If set, backups will be created within a Zip archive (Slow and CPU intensive). Default value is
false
.- enabled Boolean
Flag to enable or disable the backup config. Default value is
true
.- exclude
New BooleanRepositories When set, new repositories will not be automatically added to the backup. Default value is
false
.- excluded
Repositories List<String> A list of excluded repositories from the backup. Default is empty list.
- export
Mission BooleanControl When set to true, mission control will not be automatically added to the backup. Default value is
false
.- retention
Period IntegerHours The number of hours to keep a backup before Artifactory will clean it up to free up disk space. Applicable only to non-incremental backups. Default value is 168 hours ie: 7 days.
- send
Mail BooleanOn Error If set, all Artifactory administrators will be notified by email if any problem is encountered during backup. Default value is
true
.- verify
Disk BooleanSpace If set, Artifactory will verify that the backup target location has enough disk space available to hold the backed up data. If there is not enough space available, Artifactory will abort the backup and write a message in the log file. Applicable only to non-incremental backups.
- cron
Exp string A valid CRON expression that you can use to control backup frequency. Eg: "0 0 12 * * ? *", "0 0 2 ? * MON-SAT *". Note: please use 7 character format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year. Also, specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by
?
. Incorrect:* 5,7,9 14/2 * * WED,SAT *
, correct:* 5,7,9 14/2 ? * WED,SAT *
. See details in Cron Trigger Tutorial and in Cronexp package readme.- key string
The unique ID of the artifactory backup config.
- create
Archive boolean If set, backups will be created within a Zip archive (Slow and CPU intensive). Default value is
false
.- enabled boolean
Flag to enable or disable the backup config. Default value is
true
.- exclude
New booleanRepositories When set, new repositories will not be automatically added to the backup. Default value is
false
.- excluded
Repositories string[] A list of excluded repositories from the backup. Default is empty list.
- export
Mission booleanControl When set to true, mission control will not be automatically added to the backup. Default value is
false
.- retention
Period numberHours The number of hours to keep a backup before Artifactory will clean it up to free up disk space. Applicable only to non-incremental backups. Default value is 168 hours ie: 7 days.
- send
Mail booleanOn Error If set, all Artifactory administrators will be notified by email if any problem is encountered during backup. Default value is
true
.- verify
Disk booleanSpace If set, Artifactory will verify that the backup target location has enough disk space available to hold the backed up data. If there is not enough space available, Artifactory will abort the backup and write a message in the log file. Applicable only to non-incremental backups.
- cron_
exp str A valid CRON expression that you can use to control backup frequency. Eg: "0 0 12 * * ? *", "0 0 2 ? * MON-SAT *". Note: please use 7 character format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year. Also, specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by
?
. Incorrect:* 5,7,9 14/2 * * WED,SAT *
, correct:* 5,7,9 14/2 ? * WED,SAT *
. See details in Cron Trigger Tutorial and in Cronexp package readme.- key str
The unique ID of the artifactory backup config.
- create_
archive bool If set, backups will be created within a Zip archive (Slow and CPU intensive). Default value is
false
.- enabled bool
Flag to enable or disable the backup config. Default value is
true
.- exclude_
new_ boolrepositories When set, new repositories will not be automatically added to the backup. Default value is
false
.- excluded_
repositories Sequence[str] A list of excluded repositories from the backup. Default is empty list.
- export_
mission_ boolcontrol When set to true, mission control will not be automatically added to the backup. Default value is
false
.- retention_
period_ inthours The number of hours to keep a backup before Artifactory will clean it up to free up disk space. Applicable only to non-incremental backups. Default value is 168 hours ie: 7 days.
- send_
mail_ boolon_ error If set, all Artifactory administrators will be notified by email if any problem is encountered during backup. Default value is
true
.- verify_
disk_ boolspace If set, Artifactory will verify that the backup target location has enough disk space available to hold the backed up data. If there is not enough space available, Artifactory will abort the backup and write a message in the log file. Applicable only to non-incremental backups.
- cron
Exp String A valid CRON expression that you can use to control backup frequency. Eg: "0 0 12 * * ? *", "0 0 2 ? * MON-SAT *". Note: please use 7 character format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year. Also, specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by
?
. Incorrect:* 5,7,9 14/2 * * WED,SAT *
, correct:* 5,7,9 14/2 ? * WED,SAT *
. See details in Cron Trigger Tutorial and in Cronexp package readme.- key String
The unique ID of the artifactory backup config.
- create
Archive Boolean If set, backups will be created within a Zip archive (Slow and CPU intensive). Default value is
false
.- enabled Boolean
Flag to enable or disable the backup config. Default value is
true
.- exclude
New BooleanRepositories When set, new repositories will not be automatically added to the backup. Default value is
false
.- excluded
Repositories List<String> A list of excluded repositories from the backup. Default is empty list.
- export
Mission BooleanControl When set to true, mission control will not be automatically added to the backup. Default value is
false
.- retention
Period NumberHours The number of hours to keep a backup before Artifactory will clean it up to free up disk space. Applicable only to non-incremental backups. Default value is 168 hours ie: 7 days.
- send
Mail BooleanOn Error If set, all Artifactory administrators will be notified by email if any problem is encountered during backup. Default value is
true
.- verify
Disk BooleanSpace If set, Artifactory will verify that the backup target location has enough disk space available to hold the backed up data. If there is not enough space available, Artifactory will abort the backup and write a message in the log file. Applicable only to non-incremental backups.
Outputs
All input properties are implicitly available as output properties. Additionally, the Backup 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 Backup Resource
Get an existing Backup 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?: BackupState, opts?: CustomResourceOptions): Backup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_archive: Optional[bool] = None,
cron_exp: Optional[str] = None,
enabled: Optional[bool] = None,
exclude_new_repositories: Optional[bool] = None,
excluded_repositories: Optional[Sequence[str]] = None,
export_mission_control: Optional[bool] = None,
key: Optional[str] = None,
retention_period_hours: Optional[int] = None,
send_mail_on_error: Optional[bool] = None,
verify_disk_space: Optional[bool] = None) -> Backup
func GetBackup(ctx *Context, name string, id IDInput, state *BackupState, opts ...ResourceOption) (*Backup, error)
public static Backup Get(string name, Input<string> id, BackupState? state, CustomResourceOptions? opts = null)
public static Backup get(String name, Output<String> id, BackupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Create
Archive bool If set, backups will be created within a Zip archive (Slow and CPU intensive). Default value is
false
.- Cron
Exp string A valid CRON expression that you can use to control backup frequency. Eg: "0 0 12 * * ? *", "0 0 2 ? * MON-SAT *". Note: please use 7 character format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year. Also, specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by
?
. Incorrect:* 5,7,9 14/2 * * WED,SAT *
, correct:* 5,7,9 14/2 ? * WED,SAT *
. See details in Cron Trigger Tutorial and in Cronexp package readme.- Enabled bool
Flag to enable or disable the backup config. Default value is
true
.- Exclude
New boolRepositories When set, new repositories will not be automatically added to the backup. Default value is
false
.- Excluded
Repositories List<string> A list of excluded repositories from the backup. Default is empty list.
- Export
Mission boolControl When set to true, mission control will not be automatically added to the backup. Default value is
false
.- Key string
The unique ID of the artifactory backup config.
- Retention
Period intHours The number of hours to keep a backup before Artifactory will clean it up to free up disk space. Applicable only to non-incremental backups. Default value is 168 hours ie: 7 days.
- Send
Mail boolOn Error If set, all Artifactory administrators will be notified by email if any problem is encountered during backup. Default value is
true
.- Verify
Disk boolSpace If set, Artifactory will verify that the backup target location has enough disk space available to hold the backed up data. If there is not enough space available, Artifactory will abort the backup and write a message in the log file. Applicable only to non-incremental backups.
- Create
Archive bool If set, backups will be created within a Zip archive (Slow and CPU intensive). Default value is
false
.- Cron
Exp string A valid CRON expression that you can use to control backup frequency. Eg: "0 0 12 * * ? *", "0 0 2 ? * MON-SAT *". Note: please use 7 character format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year. Also, specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by
?
. Incorrect:* 5,7,9 14/2 * * WED,SAT *
, correct:* 5,7,9 14/2 ? * WED,SAT *
. See details in Cron Trigger Tutorial and in Cronexp package readme.- Enabled bool
Flag to enable or disable the backup config. Default value is
true
.- Exclude
New boolRepositories When set, new repositories will not be automatically added to the backup. Default value is
false
.- Excluded
Repositories []string A list of excluded repositories from the backup. Default is empty list.
- Export
Mission boolControl When set to true, mission control will not be automatically added to the backup. Default value is
false
.- Key string
The unique ID of the artifactory backup config.
- Retention
Period intHours The number of hours to keep a backup before Artifactory will clean it up to free up disk space. Applicable only to non-incremental backups. Default value is 168 hours ie: 7 days.
- Send
Mail boolOn Error If set, all Artifactory administrators will be notified by email if any problem is encountered during backup. Default value is
true
.- Verify
Disk boolSpace If set, Artifactory will verify that the backup target location has enough disk space available to hold the backed up data. If there is not enough space available, Artifactory will abort the backup and write a message in the log file. Applicable only to non-incremental backups.
- create
Archive Boolean If set, backups will be created within a Zip archive (Slow and CPU intensive). Default value is
false
.- cron
Exp String A valid CRON expression that you can use to control backup frequency. Eg: "0 0 12 * * ? *", "0 0 2 ? * MON-SAT *". Note: please use 7 character format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year. Also, specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by
?
. Incorrect:* 5,7,9 14/2 * * WED,SAT *
, correct:* 5,7,9 14/2 ? * WED,SAT *
. See details in Cron Trigger Tutorial and in Cronexp package readme.- enabled Boolean
Flag to enable or disable the backup config. Default value is
true
.- exclude
New BooleanRepositories When set, new repositories will not be automatically added to the backup. Default value is
false
.- excluded
Repositories List<String> A list of excluded repositories from the backup. Default is empty list.
- export
Mission BooleanControl When set to true, mission control will not be automatically added to the backup. Default value is
false
.- key String
The unique ID of the artifactory backup config.
- retention
Period IntegerHours The number of hours to keep a backup before Artifactory will clean it up to free up disk space. Applicable only to non-incremental backups. Default value is 168 hours ie: 7 days.
- send
Mail BooleanOn Error If set, all Artifactory administrators will be notified by email if any problem is encountered during backup. Default value is
true
.- verify
Disk BooleanSpace If set, Artifactory will verify that the backup target location has enough disk space available to hold the backed up data. If there is not enough space available, Artifactory will abort the backup and write a message in the log file. Applicable only to non-incremental backups.
- create
Archive boolean If set, backups will be created within a Zip archive (Slow and CPU intensive). Default value is
false
.- cron
Exp string A valid CRON expression that you can use to control backup frequency. Eg: "0 0 12 * * ? *", "0 0 2 ? * MON-SAT *". Note: please use 7 character format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year. Also, specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by
?
. Incorrect:* 5,7,9 14/2 * * WED,SAT *
, correct:* 5,7,9 14/2 ? * WED,SAT *
. See details in Cron Trigger Tutorial and in Cronexp package readme.- enabled boolean
Flag to enable or disable the backup config. Default value is
true
.- exclude
New booleanRepositories When set, new repositories will not be automatically added to the backup. Default value is
false
.- excluded
Repositories string[] A list of excluded repositories from the backup. Default is empty list.
- export
Mission booleanControl When set to true, mission control will not be automatically added to the backup. Default value is
false
.- key string
The unique ID of the artifactory backup config.
- retention
Period numberHours The number of hours to keep a backup before Artifactory will clean it up to free up disk space. Applicable only to non-incremental backups. Default value is 168 hours ie: 7 days.
- send
Mail booleanOn Error If set, all Artifactory administrators will be notified by email if any problem is encountered during backup. Default value is
true
.- verify
Disk booleanSpace If set, Artifactory will verify that the backup target location has enough disk space available to hold the backed up data. If there is not enough space available, Artifactory will abort the backup and write a message in the log file. Applicable only to non-incremental backups.
- create_
archive bool If set, backups will be created within a Zip archive (Slow and CPU intensive). Default value is
false
.- cron_
exp str A valid CRON expression that you can use to control backup frequency. Eg: "0 0 12 * * ? *", "0 0 2 ? * MON-SAT *". Note: please use 7 character format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year. Also, specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by
?
. Incorrect:* 5,7,9 14/2 * * WED,SAT *
, correct:* 5,7,9 14/2 ? * WED,SAT *
. See details in Cron Trigger Tutorial and in Cronexp package readme.- enabled bool
Flag to enable or disable the backup config. Default value is
true
.- exclude_
new_ boolrepositories When set, new repositories will not be automatically added to the backup. Default value is
false
.- excluded_
repositories Sequence[str] A list of excluded repositories from the backup. Default is empty list.
- export_
mission_ boolcontrol When set to true, mission control will not be automatically added to the backup. Default value is
false
.- key str
The unique ID of the artifactory backup config.
- retention_
period_ inthours The number of hours to keep a backup before Artifactory will clean it up to free up disk space. Applicable only to non-incremental backups. Default value is 168 hours ie: 7 days.
- send_
mail_ boolon_ error If set, all Artifactory administrators will be notified by email if any problem is encountered during backup. Default value is
true
.- verify_
disk_ boolspace If set, Artifactory will verify that the backup target location has enough disk space available to hold the backed up data. If there is not enough space available, Artifactory will abort the backup and write a message in the log file. Applicable only to non-incremental backups.
- create
Archive Boolean If set, backups will be created within a Zip archive (Slow and CPU intensive). Default value is
false
.- cron
Exp String A valid CRON expression that you can use to control backup frequency. Eg: "0 0 12 * * ? *", "0 0 2 ? * MON-SAT *". Note: please use 7 character format - Seconds, Minutes Hours, Day Of Month, Month, Day Of Week, Year. Also, specifying both a day-of-week AND a day-of-month parameter is not supported. One of them should be replaced by
?
. Incorrect:* 5,7,9 14/2 * * WED,SAT *
, correct:* 5,7,9 14/2 ? * WED,SAT *
. See details in Cron Trigger Tutorial and in Cronexp package readme.- enabled Boolean
Flag to enable or disable the backup config. Default value is
true
.- exclude
New BooleanRepositories When set, new repositories will not be automatically added to the backup. Default value is
false
.- excluded
Repositories List<String> A list of excluded repositories from the backup. Default is empty list.
- export
Mission BooleanControl When set to true, mission control will not be automatically added to the backup. Default value is
false
.- key String
The unique ID of the artifactory backup config.
- retention
Period NumberHours The number of hours to keep a backup before Artifactory will clean it up to free up disk space. Applicable only to non-incremental backups. Default value is 168 hours ie: 7 days.
- send
Mail BooleanOn Error If set, all Artifactory administrators will be notified by email if any problem is encountered during backup. Default value is
true
.- verify
Disk BooleanSpace If set, Artifactory will verify that the backup target location has enough disk space available to hold the backed up data. If there is not enough space available, Artifactory will abort the backup and write a message in the log file. Applicable only to non-incremental backups.
Import
Backup config can be imported using the key, e.g.
$ pulumi import artifactory:index/backup:Backup backup_name backup_name
Package Details
- Repository
- artifactory pulumi/pulumi-artifactory
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
artifactory
Terraform Provider.