backup-utils icon indicating copy to clipboard operation
backup-utils copied to clipboard

Check target disk space before attempting restore

Open adamcharlton opened this issue 8 years ago • 3 comments

Hi, I encountered an issue where my restore failed due to insufficient disk space on the restore target.

When running the restore on Linux an error like rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32) occurs however on a Mac you do not get an error at all and it just stalls until you close the restore process.

I think it would be nice if the restore calculated the size of the restore about to happen and verified that the /data/user directory on the target had sufficient space for the restore, as this would provide instant feedback that the restore would not be successful.

adamcharlton avatar Apr 03 '17 04:04 adamcharlton

@adamcharlton: makes sense. Should be easy to implement for single VM restores.

rubiojr avatar Apr 03 '17 07:04 rubiojr

@adamcharlton out of curiosity, which macOS/rsync version are you using?

rubiojr avatar Apr 03 '17 07:04 rubiojr

@adamcharlton we've been discussing this internally. The TL;DR is that estimating if there's enough free disk space available is complicated and/or expensive because we compress some data that has to be expanded remotely. We're looking into better error reporting for now, so the cryptic rsync error isn't the only thing you get.

rubiojr avatar Apr 03 '17 10:04 rubiojr