Deprecate BACKUP_FROM_SNAPSHOT (#81)

This commit is contained in:
Frederik Ring
2022-03-25 18:28:58 +01:00
committed by GitHub
parent 1ea0b51b23
commit 51af8c3c77
2 changed files with 43 additions and 0 deletions

View File

@@ -356,6 +356,12 @@ func (s *script) takeBackup() error {
backupSources := s.c.BackupSources
if s.c.BackupFromSnapshot {
s.logger.Warn(
"Using BACKUP_FROM_SNAPSHOT has been deprecated and will be removed in the next major version.",
)
s.logger.Warn(
"Please use `exec-pre` and `exec-post` commands to prepare your backup sources. Refer to the README for an upgrade guide.",
)
backupSources = filepath.Join("/tmp", s.c.BackupSources)
// copy before compressing guard against a situation where backup folder's content are still growing.
s.registerHook(hookLevelPlumbing, func(error) error {