backup-utils
backup-utils copied to clipboard
Check target disk space before attempting restore
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: makes sense. Should be easy to implement for single VM restores.
@adamcharlton out of curiosity, which macOS/rsync version are you using?
@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.