async fn backup_directory<P: AsRef<Path>>(
- client: &BackupClient,
+ client: &BackupWriter,
dir_path: P,
archive_name: &str,
chunk_size: Option<usize>,
}
async fn backup_image<P: AsRef<Path>>(
- client: &BackupClient,
+ client: &BackupWriter,
image_path: P,
archive_name: &str,
image_size: u64,
};
async_main(async move {
- let client = client
- .start_backup(repo.store(), backup_type, &backup_id, backup_time, verbose)
- .await?;
+ let client = BackupWriter::start(
+ client,
+ repo.store(),
+ backup_type,
+ &backup_id,
+ backup_time,
+ verbose,
+ ).await?;
let mut file_list = vec![];