Skip to content

Conversation

@kr-mohak
Copy link
Contributor

@kr-mohak kr-mohak commented Oct 7, 2019

Add two new methods to BackupEngine:

  • CreateNewBackupFlush which flushes the WAL before backup
  • PurgeOldBackups which deletes backups older than the n latest backups

Copy link
Collaborator

@jamesbibby jamesbibby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small optimization, otherwise looks great thanks!

CreateNewBackupFlush, when flush is set to true, flushes the WAL
before creating the backup. When flush is set to false, it acts
exactly like CreateNewBackup and backups the WAL in a separate,
non-atomic operation.
@kr-mohak kr-mohak force-pushed the backup-improvements branch from 960d8d3 to 1c5d8be Compare October 19, 2019 05:50
Copy link
Collaborator

@jamesbibby jamesbibby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you for the contribution

@jamesbibby jamesbibby merged commit 400c562 into tecbot:master Oct 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants