I have a Python daemon running on CentOS that opens a file at the beginning of a session, and keeps writing to it.
A cronjob however, gzipped the file that was being written to, and so the file moved from log.txt to log.txt.gz. The daemon however kept writing to log.txt. The daemon then has been stopped and closed the file descriptor to log.txt.
Is there any way to recover the data that was written by the daemon to log.txt after the file was moved to log.txt.gz?