Forums

Title: Urgent: Possible loss/overwriting of SQLite database after website reactivation – is recovery possible?

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
<h3>What happened</h3>

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:

  1. My Flask application uses DB_PATH = 'database.db'.
  2. The PythonAnywhere working directory is /home/sidhivinayak/mysite.
  3. The WSGI configuration points to the correct project directory and imports the expected Flask application.
  4. The server log confirms that the website restarted successfully on 15 October 2026.
  5. The current database passes SQLite's integrity check, but its missing tables contain zero records.
  6. The current database file's last modification timestamp is 9 August 2026, despite the fact that I was adding bills in October.
  7. I searched /home, /tmp and /var/tmp for other SQLite databases and backup files but could not find the October database.
  8. I have preserved copies of the current database and have not overwritten them.
<h3>My request</h3>

I understand that backup restoration may not be available for Free accounts, but I would really appreciate guidance on the following:

  1. Is there any possibility that PythonAnywhere retains an older filesystem snapshot or backup containing my database from October?
  2. Could the database have been overwritten or reverted during the website's temporary suspension/reactivation?
  3. Is there any way to recover the previous version of /home/sidhivinayak/mysite/database.db?
  4. 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.