NVMe VPS in Italy: how fast you can bring a project back from backup
People usually think about a fast disk while the site is running. Yet the most visible difference between NVMe and a slow disk shows up on the day the site is down: the server has failed, or a botched update has corrupted the database, and it has to be restored from a copy. On NVMe a database of a few gigabytes comes back in minutes; on an overloaded HDD it takes hours. For an Italian project there is also a requirement of European law, covered below.
What the law expects from recovery
Article 32 of the GDPR explicitly lists, among security measures, the ability to restore access to personal data in a timely manner after a physical or technical incident. The same article requires you to test regularly that these measures work. So a backup alone is not enough: you need to be able to show that you can actually restore from it. If an incident led to the loss or leak of customer data, it has to be reported to the Garante within 72 hours. That is much easier when you already know how long a restore takes and have written it down.
Where the disk decides recovery speed
- Importing a database dump. When MySQL or PostgreSQL loads a dump, it does not just copy a file. It inserts every row again and rebuilds the indexes. That is millions of small writes, and the speed depends entirely on the disk.
- Unpacking the site files. An archive of an online shop's images is hundreds of thousands of small files, and each one has to be created on disk.
- Restoring from incremental backups. Tools such as restic and BorgBackup reassemble files from thousands of chunks scattered across the repository and write out the result. NVMe on the receiving side speeds this up too.
There is a flip side. If the copies sit in storage a thousand kilometres away behind a 100 Mbit/s link, the restore will be limited by the network and a fast disk will not help. Keep at least one recent copy in the same country, or with the same provider on a different server.
A practice restore in one evening
Do this once right after launch and then once a quarter. Create a second server next to the first, on hourly billing if the provider offers it, and restore everything onto it from a copy while timing each step:
- Download the latest copy from storage and note how long it took.
- Restore the database. For PostgreSQL use a dump in the
-Fddirectory format and parallel loading withpg_restore -j 4: on NVMe with several cores this is many times faster than a single-threaded load. - Deploy the files and check that the site opens and the latest order is there.
The sum of those three steps is your real downtime. If it is longer than you are willing to wait, the fix is usually not a more expensive CPU but a fast disk and a copy kept closer. After the test you delete the server, and it costs next to nothing. Backup schemes are covered in more detail on VPS for backups.
The second number worth knowing is how much data you will lose. If the database is copied once a day at three in the morning and the server fails at six in the evening, fifteen hours of orders are gone. For a shop that is usually unacceptable. The fix is cheap: a full dump every night plus continuous shipping of the database log to another server, WAL archiving in PostgreSQL or the binary log in MySQL. Then a restore brings the database almost up to the minute of the failure.
Snapshots do not replace backups
Many Italian providers offer one-click disk snapshots. They are handy before an update: if something goes wrong, you roll back in a minute. But a snapshot is usually kept in the same storage as the disk itself, and if that storage fails, the snapshot goes with it. A snapshot of a running database taken without stopping it can also turn out inconsistent. Use snapshots for quick rollbacks, and for recovery after a serious failure keep separate database copies made with the database's own tools.
Milan, taxes and payment
The main Italian data centres are in Milan, next to MIX, the country's largest internet exchange; there are also locations in Rome, Arezzo and Bergamo. From Frankfurt or Zurich Milan is usually about 10 to 15 ms away, from Paris around 15 to 20 ms and from London about 25 to 30 ms. A server in Italy makes sense above all for Italian visitors and customers: for them a site in Milan is noticeably faster than one in Frankfurt or Amsterdam. Locations in the city are collected on VPS in Milan, and a general overview is on VPS in Italy.
VAT in Italy is 22 %. Private customers in the EU pay it on top, EU businesses that enter their VAT number pay without tax under the reverse-charge scheme, and customers outside the EU are usually not charged it. Cards and PayPal are accepted almost everywhere, and the table shows the payment methods for each plan.