Restore deleted file which is still open.
Posted on 2009-03-31
We deleted (rm) a file that was (is) open by a 24/7 process.
We have a backup of this file and want to copy it over to the original location.
1) Process P has file F open.
2) cp F /tmp/F
3) rm F
We cannot "stop" process "P", but would like to restore the "F" file to it's original location.
What would be the consequences to the "P" process? would it fail? would it take the file as nothing had happened?