Documentation ¶
Index ¶
- func HandleBackupDelete(backupName string, downloader archive.Downloader, purger archive.Purger, ...) error
- func HandleBackupPush(uploader archive.Uploader, metaConstructor internal.MetaConstructor, ...) error
- func HandleBackupShow(backupFolder storage.Folder, backupName string, output io.Writer, pretty bool) (err error)
- func HandleBackupsPurge(backupTimes []internal.BackupTime, downloader archive.Downloader, ...) (purge, retain []*models.Backup, err error)
- func HandleBinaryBackupPush(ctx context.Context, permanent bool, appName string) error
- func HandleBinaryFetchPush(ctx context.Context, ...) error
- func HandleDetailedBackupList(folder storage.Folder, output io.Writer, pretty, json bool) error
- func HandleOplogPurge(downloader archive.Downloader, purger archive.Purger, retainAfter *time.Time, ...) error
- func HandleOplogPush(ctx context.Context, fetcher stages.Fetcher, applier stages.Applier) error
- func HandleOplogReplay(ctx context.Context, since, until models.Timestamp, ...) error
- func HandlePurge(downloader archive.Downloader, purger archive.Purger, setters ...PurgeOption) error
- func LoadBackups(downloader archive.Downloader) ([]*models.Backup, error)
- type BackupDetail
- type PurgeOption
- type PurgeSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleBackupDelete ¶
func HandleBackupDelete(backupName string, downloader archive.Downloader, purger archive.Purger, dryRun bool) error
HandleBackupDelete deletes backup.
func HandleBackupPush ¶
func HandleBackupPush(uploader archive.Uploader, metaConstructor internal.MetaConstructor, backupCmd *exec.Cmd) error
HandleBackupPush starts backup procedure.
func HandleBackupShow ¶
func HandleBackupShow(backupFolder storage.Folder, backupName string, output io.Writer, pretty bool) (err error)
HandleBackupShow prints sentinel contents.
func HandleBackupsPurge ¶
func HandleBackupsPurge(backupTimes []internal.BackupTime, downloader archive.Downloader, purger archive.Purger, opts PurgeSettings) (purge, retain []*models.Backup, err error)
HandleBackupsPurge delete backups according to settings
func HandleBinaryBackupPush ¶
func HandleBinaryFetchPush ¶
func HandleOplogPurge ¶
func HandleOplogPurge(downloader archive.Downloader, purger archive.Purger, retainAfter *time.Time, dryRun bool) error
HandleOplogPurge delete oplog archives according to settings
func HandleOplogPush ¶
HandleOplogPush starts oplog archiving process: fetch, validate, upload to storage.
func HandleOplogReplay ¶
func HandleOplogReplay(ctx context.Context, since, until models.Timestamp, fetcher stages.BetweenFetcher, applier stages.Applier) error
HandleOplogReplay starts oplog replay process: download from storage and apply to mongodb
func HandlePurge ¶
func HandlePurge(downloader archive.Downloader, purger archive.Purger, setters ...PurgeOption) error
HandlePurge delete backups and oplog archives according to settings
func LoadBackups ¶
func LoadBackups(downloader archive.Downloader) ([]*models.Backup, error)
Types ¶
type BackupDetail ¶
func NewBackupDetail ¶
func NewBackupDetail(backupTime internal.BackupTime, sentinel *models.Backup) *BackupDetail
type PurgeOption ¶
type PurgeOption func(*PurgeSettings)
func PurgeRetainAfter ¶
func PurgeRetainAfter(retainAfter time.Time) PurgeOption
PurgeRetainAfter ...
type PurgeSettings ¶
type PurgeSettings struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.