CLI tool for migrating PDS

Give more feedback while migrating repo and blobs

Changed files
+7 -4
src
+7 -4
src/main.rs
···
}
};
-
let password = password.clone();
let describe_res = match new_agent.api.com.atproto.server.describe_server().await {
Ok(response) => response,
Err(err) => {
···
return;
}
};
-
println!("CAR file downloaded");
+
println!("Repository downloaded from old PDS. Importing to new PDS.");
match new_agent.api.com.atproto.repo.import_repo(car).await {
Ok(_) => (),
···
};
match new_agent.api.com.atproto.repo.upload_blob(blob).await {
-
Ok(_) => (),
+
Ok(_) => {
+
println!("Blob with CID {:?} migrated", cid)
+
},
Err(err) => {
println!("com.atproto.repo.uploadBlob at new PDS failed due to error: {err}");
return;
···
};
match new_agent.api.com.atproto.repo.upload_blob(blob).await {
-
Ok(_) => (),
+
Ok(_) => {
+
println!("Blob with CID {:?} migrated", cid)
+
},
Err(err) => {
println!("com.atproto.repo.uploadBlob at new PDS failed due to error: {err}");
return;