Skip to content

Estimated size 30GB, actual size 11GB. What's missing? #235

Answered by ReagentX
aaronrudkin asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know how Apple calculates the size.

imessage-exporter provides a rough estimate so writing the export does not exceed available disk space:

/// Ensure there is available disk space for the requested export
fn ensure_free_space(&self) -> Result<(), RuntimeError> {
// Export size is usually about 6% the size of the db; we divide by 10 to over-estimate about 10% of the total size
// for some safe headroom
let total_db_size =
get_db_size(&self.options.db_path).map_err(RuntimeError::DatabaseError)?;
let mut estimated_export_size = total_db_size / 10;
let

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ReagentX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #234 on March 08, 2024 22:18.