Skip to content

Commit

Permalink
Support for custom restore script in snapshots. This can be used as t…
Browse files Browse the repository at this point in the history
…he reverse of the custom back up script.
  • Loading branch information
divolgin committed Jul 25, 2018
1 parent e8bad50 commit e72fe6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type BackupStrategy struct {
Enabled string `yaml:"enabled" json:"enabled"`
PauseContainers string `yaml:"pause_containers" json:"pause_containers"`
Script string `yaml:"script" json:"script"`
RestoreScript string `yaml:"restore_script" json:"restore_script"`
Manual string `yaml:"manual" json:"manual"`
Kubernetes K8sBackups `yaml:"kubernetes" json:"kubernetes"`
Swarm SwarmBackups `yaml:"swarm" json:"swarm"`
Expand All @@ -26,6 +27,7 @@ type Backup struct {
ExcludeRegistryData string `yaml:"exclude_registry_data" json:"exclude_registry_data"`
DisableDeduplication string `yaml:"disable_deduplication" json:"disable_deduplication"`
Script string `yaml:"script" json:"script"`
RestoreScript string `yaml:"restore_script" json:"restore_script"`
Kubernetes K8sBackups `yaml:"kubernetes" json:"kubernetes"`
Swarm SwarmBackups `yaml:"swarm" json:"swarm"`
Strategies []BackupStrategy `yaml:"strategies" json:"strategies"`
Expand Down

0 comments on commit e72fe6d

Please sign in to comment.