src/backup/backup_info.rs - compute_prune_list: remove unfinished backups

This commit is contained in:
Dietmar Maurer
2019-12-05 11:18:10 +01:00
parent 6b9f395f31
commit 9ce42759ec
6 changed files with 26 additions and 7 deletions

View File

@ -86,6 +86,9 @@ fn upgrade_to_backup_protocol(
if backup_dir.backup_time() <= last.backup_dir.backup_time() {
bail!("backup timestamp is older than last backup.");
}
// fixme: abort if last backup is still running - howto test?
// Idea: write upid into a file inside snapshot dir. then test if
// it is still running here.
}
let (path, is_new) = datastore.create_backup_dir(&backup_dir)?;