Great question — answering as the UphillTech team:
No: successfully recovering a file with btrfs restore does not establish that it is byte-for-byte identical to its last version before deletion. It can be intact, but neither the filename nor the fact that recovery finished proves that. The btrfs restore documentation explicitly warns that its less strict checks can retrieve data that is incomplete or belongs to an older version. There is an additional reason to be careful with the particular script you linked. Its recovery function currently runs commands such as: btrfs restore -ivv --path-regex '^/'${regex}'$' "$dev" "$dst" &> /dev/null & Here -i means ignore errors during restoration and continue ; the redirection discards both standard...
Full answer by Андрей: https://superuser.stackexchange.com/a/1941162 (CC BY-SA 4.0).
Need it done for your business? UphillTech.