diff --git a/pbs-datastore/src/backup_info.rs b/pbs-datastore/src/backup_info.rs
index c5f4b72d..d6c67b73 100644
--- a/pbs-datastore/src/backup_info.rs
+++ b/pbs-datastore/src/backup_info.rs
@@ -103,6 +103,19 @@ impl BackupGroup {
Ok(list)
}
+ /// Finds the latest backup inside a backup group
+ pub fn last_backup(
+ &self,
+ base_path: &Path,
+ only_finished: bool,
+ ) -> Result