Hello PythonAnywhere community,
I need help recovering important data from my Flask application hosted on PythonAnywhere.
My website is:
- Website: https://sidhivinayak.pythonanywhere.com
- Username: sidhivinayak
- Account: Free plan
- Application: Flask with SQLite
- Database path:
/home/sidhivinayak/mysite/database.db
My website was working normally, and I had important records stored in its SQLite database, including:
- Tenant details
- Rent transactions and payment records
- Bills and expenses
- Tenant documents and uploaded files
I was actively using the website and adding new bills in October 2026.
Around 15 October 2026, my website temporarily became unavailable. I restored its availability by clicking the "Run website for another month" button. I did not intentionally delete or replace the database, upload a new ZIP, or change the database configuration at that time.
Afterwards, I discovered that the tenant and financial records were missing.
<h3>What I have investigated</h3>I have checked the following:
- My Flask application uses
DB_PATH = 'database.db'. - The PythonAnywhere working directory is
/home/sidhivinayak/mysite. - The WSGI configuration points to the correct project directory and imports the expected Flask application.
- The server log confirms that the website restarted successfully on 15 October 2026.
- The current database passes SQLite's integrity check, but its missing tables contain zero records.
- The current database file's last modification timestamp is 9 August 2026, despite the fact that I was adding bills in October.
- I searched
/home,/tmpand/var/tmpfor other SQLite databases and backup files but could not find the October database. - I have preserved copies of the current database and have not overwritten them.
I understand that backup restoration may not be available for Free accounts, but I would really appreciate guidance on the following:
- Is there any possibility that PythonAnywhere retains an older filesystem snapshot or backup containing my database from October?
- Could the database have been overwritten or reverted during the website's temporary suspension/reactivation?
- Is there any way to recover the previous version of
/home/sidhivinayak/mysite/database.db? - Are there any server-side recovery options available to Free account users, even if official restoration is not normally provided?
This database contains important business records, and losing it would be a serious problem.
I would be extremely grateful for any guidance or recovery assistance.
Thank you.