tape: do not try to backup unfinished backups

This commit is contained in:
Dietmar Maurer 2021-04-15 10:24:14 +02:00
parent 26af61debc
commit 80acdd71fa

View File

@ -442,7 +442,13 @@ fn backup_worker(
progress.done_snapshots = 0;
progress.group_snapshots = 0;
let mut snapshot_list = group.list_backups(&datastore.base_path())?;
let snapshot_list = group.list_backups(&datastore.base_path())?;
// filter out unfinished backups
let mut snapshot_list = snapshot_list
.into_iter()
.filter(|item| item.is_finished())
.collect();
BackupInfo::sort_list(&mut snapshot_list, true); // oldest first