backup/datastore: create_backup_dir: show if path existed
To enable asserting the creation of a new backup rather than adding to an existing one. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
@ -81,7 +81,7 @@ fn upload_catar(
|
||||
|
||||
let datastore = DataStore::lookup_datastore(store)?;
|
||||
|
||||
let mut path = datastore.create_backup_dir(backup_type, backup_id, backup_time)?;
|
||||
let (mut path, _new) = datastore.create_backup_dir(backup_type, backup_id, backup_time)?;
|
||||
|
||||
path.push(archive_name);
|
||||
|
||||
|
Reference in New Issue
Block a user