<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alexey Smirnov</title>
    <description>The latest articles on DEV Community by Alexey Smirnov (@torrezz88).</description>
    <link>https://dev.to/torrezz88</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4228203%2Ff9c9850e-757a-4c59-b22d-4ad69464cb81.jpg</url>
      <title>DEV Community: Alexey Smirnov</title>
      <link>https://dev.to/torrezz88</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/torrezz88"/>
    <language>en</language>
    <item>
      <title>My hosting got hit by a cyberattack and my game's database was wiped: how I moved a browser football manager to a new server</title>
      <dc:creator>Alexey Smirnov</dc:creator>
      <pubDate>Thu, 05 Nov 2026 10:00:50 +0000</pubDate>
      <link>https://dev.to/torrezz88/my-hosting-got-hit-by-a-cyberattack-and-my-games-database-was-wiped-how-i-moved-a-browser-a5k</link>
      <guid>https://dev.to/torrezz88/my-hosting-got-hit-by-a-cyberattack-and-my-games-database-was-wiped-how-i-moved-a-browser-a5k</guid>
      <description>&lt;p&gt;I'm a solo developer building MLiga, a free multiplayer football manager that runs in the browser. A few days ago the hosting provider where it lived was hit by a cyberattack, and the database was deleted — every club, every match, the whole league history. Here is what I did next, and what I'd do differently.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fprh58ayt89287s1ftw3t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fprh58ayt89287s1ftw3t.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The situation
&lt;/h2&gt;

&lt;p&gt;The game is a single HTML file plus a small Node.js server. The server runs the same game code that runs in the browser, simulates league rounds on a schedule and stores everything in SQLite. When the provider's incident wiped the database, there was nothing to restore from: my only backups lived on the same server.&lt;/p&gt;

&lt;p&gt;I had two options: shut the project down or move fast and restart. I chose to restart.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I did
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Rented a VPS&lt;/strong&gt; and set up the server from scratch with a short install script, so a rebuild takes minutes instead of hours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Moved to a new domain and enabled HTTPS&lt;/strong&gt; with Let's Encrypt.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set up automatic backups&lt;/strong&gt; of the database on the server, plus a small Python script on my own computer that downloads a copy on demand. Now a copy lives outside the server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Restored notifications&lt;/strong&gt; to the community pages. Telegram is not reachable directly from my server's network, so I put a tiny proxy in front of the Bot API using a Cloudflare Worker. Large photo uploads kept dropping the connection, so the code now falls back to a text message if the picture fails.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Restarted the league from round 1.&lt;/strong&gt; Everyone starts from zero, which at least makes it a fair moment for newcomers to join.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Lessons
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backups on the same server are not backups.&lt;/strong&gt; Keep at least one copy somewhere else, and test that you can restore it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make the setup repeatable.&lt;/strong&gt; A single script that installs everything saved me.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tell your players quickly and honestly.&lt;/strong&gt; I added a notice at the top of the game explaining what happened and why everyone starts from round 1. People were more understanding than I expected.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Small fallbacks matter.&lt;/strong&gt; The Telegram picture-to-text fallback is three lines of code and keeps announcements working.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;I recently added a guest mode so that new players can try the game without signing up: pick a club in Belgium, enter just a name and play. After a minute the game offers to save your progress with a login and password; if you skip it, the guest and the club are removed after 2 hours.&lt;/p&gt;

&lt;p&gt;Play here (free, in the browser): &lt;a href="https://mliga.su/?guest=1&amp;amp;lang=en" rel="noopener noreferrer"&gt;https://mliga.su/?guest=1&amp;amp;lang=en&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you try it, I'd love your feedback: is the guest start clear, and is anything confusing in the first few minutes?&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>gamedev</category>
      <category>javascript</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
