Documentation ¶
Index ¶
- type Backup
- func (b *Backup) BuildBackupDir(path string) (r *Backup, err error)
- func (b *Backup) Restore() (err error)
- func (b *Backup) RestoreDb() (err error)
- func (b *Backup) RestoreResources() (err error)
- func (b *Backup) Run() (err error)
- func (b *Backup) SetCustomOptions(customOptions string) error
- func (b *Backup) SetDelete(delete bool) error
- func (b *Backup) SetLocalOnly(localOnly bool) error
- func (b *Backup) Validate() (err error)
- type BkpJobTask
- type Downloader
- type Runner
- type S3
- type Uploader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type Backup struct {
// contains filtered or unexported fields
}
func NewBackup ¶
func NewBackup(context context.Context, clientTools *clienttools.ClientTools, syndesis *synapi.Syndesis, backupDir string) (*Backup, error)
func (*Backup) BuildBackupDir ¶
* Because there is some incoherency with the path for backup and for restore, * it is needed to transform it from backup to restore so that the restore * can be performed
func (*Backup) Restore ¶
Restore backup from a zipped file or from a backup dir Restore database and openshift resources
func (*Backup) RestoreDb ¶
- Rationale for architecture *
- 1 container in the pod - RESTORE_CONTAINER *
- Container mounts a single ephemeral volume *
- RESTORE_CONTAINER: Restores the dump file *
- This starts the process by executing a remote command on to the
- RESTORE_CONTAINER. The remote command uploads the dump file to
- the correct location then once finished touches a file as a signal
- for the RESTORE_CONTAINER. *
- When the RESTORE_CONTAINER, espies the file, it breaks its wait loop
- & begins the restore process to the database host. *
- Once the restore has completed then there is nothing more to be done.
Restore database
func (*Backup) RestoreResources ¶
Restore openshift resources
func (*Backup) SetCustomOptions ¶
func (*Backup) SetLocalOnly ¶
type Downloader ¶
downloader interface has methods to download backup files from a remote location
type Uploader ¶
type Uploader interface { // Upload backup files to a remote location Upload(dir string) (err error) // Update syndesis status to reflect an upload Status() (err error) // Can this uploader be used with current settings Enabled() (result bool) }
Uploader interface has methods to upload backup files to a remote datastore
Click to show internal directories.
Click to hide internal directories.