diff --git a/src/backup/manifest.rs b/src/backup/manifest.rs index a64cbe15..8742cb0a 100644 --- a/src/backup/manifest.rs +++ b/src/backup/manifest.rs @@ -10,6 +10,7 @@ use crate::backup::{BackupDir, CryptMode, CryptConfig, Fingerprint}; pub const MANIFEST_BLOB_NAME: &str = "index.json.blob"; pub const MANIFEST_LOCK_NAME: &str = ".index.json.lck"; pub const CLIENT_LOG_BLOB_NAME: &str = "client.log.blob"; +pub const ENCRYPTED_KEY_BLOB_NAME: &str = "rsa-encrypted.key.blob"; mod hex_csum { use serde::{self, Deserialize, Serializer, Deserializer}; diff --git a/src/bin/proxmox-backup-client.rs b/src/bin/proxmox-backup-client.rs index 372ff268..1c456aab 100644 --- a/src/bin/proxmox-backup-client.rs +++ b/src/bin/proxmox-backup-client.rs @@ -54,6 +54,7 @@ use proxmox_backup::backup::{ CryptConfig, CryptMode, DynamicIndexReader, + ENCRYPTED_KEY_BLOB_NAME, FixedChunkStream, FixedIndexReader, IndexFile, @@ -1064,7 +1065,7 @@ async fn create_backup( } if let Some(rsa_encrypted_key) = rsa_encrypted_key { - let target = "rsa-encrypted.key.blob"; + let target = ENCRYPTED_KEY_BLOB_NAME; println!("Upload RSA encoded key to '{:?}' as {}", repo, target); let stats = client .upload_blob_from_data(rsa_encrypted_key, target, false, false)