Top.Mail.Ru
English
Reliability

VPS backups: a strategy that survives a real failure

A copy is useful only when it contains consistent data, remains available after the original account fails and can be restored within the required time. Build the plan from business recovery targets, not from a backup button.

VPS backup strategy with snapshots, database dumps, off-site storage and restore tests
In this guideRecovery targetsBackup typesDatabasesStorageRestore testsFAQ

Start with RPO and RTO

Recovery point objective (RPO) is the maximum acceptable data loss. Recovery time objective (RTO) is how long restoration may take. A brochure site may tolerate a day-old copy; an order database may require hourly or continuous protection. These targets determine frequency, retention, storage and cost.

Example: an RPO of one hour and RTO of four hours means data must be copied at least hourly and the complete service must be recoverable within four hours.

Use complementary backup layers

MethodStrengthLimitation
Provider snapshotFast full-server rollbackOften tied to the same provider account
Database dumpPortable and logically consistentRestore can be slow for large databases
File-level incremental copyEfficient history and individual file recoveryRequires careful exclusions and permissions
Object storage with versioningIndependent, durable retentionEgress and request costs
Infrastructure configurationRecreates a clean serverDoes not preserve user data

The 3-2-1 rule is a useful baseline: three copies, on two types of storage, with one off-site. For a VPS, the original data, a provider snapshot and an encrypted copy in a separate account or provider form a practical start.

Create application-consistent copies

Do not copy a live database directory as ordinary files. Use the database's logical dump, physical backup or replication tooling and verify its exit status. Coordinate file uploads and database records if they refer to each other. For virtual-machine snapshots, briefly quiesce the application or use a provider feature that guarantees filesystem consistency.

Back up more than content: include web server configuration, environment templates, scheduled jobs, service definitions and a list of required versions. Store secrets separately and document how to obtain them during recovery.

Encryption, retention and cost

A common retention schedule keeps daily copies for a week, weekly copies for a month and monthly copies longer. Adapt it to regulation and how long corruption might remain unnoticed.

Restore testing is the decisive test

Automate checksums and archive inspection, but also restore the complete service onto a clean temporary host. Measure the time, run migrations, open representative pages and verify a real record. Test after changing the database version, backup tool, encryption process or infrastructure.

Write a short runbook with storage locations, credentials process, exact order of restoration, DNS switch and responsible person. During an outage, concise verified instructions outperform memory.

Frequently asked questions

Is a VPS snapshot a backup?

It is a useful rapid rollback layer, but not sufficient alone. Add independent database and file copies outside the same provider account.

Must I stop the site?

Usually not. Database tools can produce consistent online backups, but file writes and cross-system consistency still need planning.

How often should restoration be tested?

After relevant changes and on a schedule. Quarterly may be a baseline for a small site; critical services need more frequent exercises.

Where should the encryption key live?

In a secret manager or protected organisational vault with an independent emergency copy, never only on the VPS.

Find a VPS with suitable storage and networkCompare NVMe capacity, port speed and total cost for your backup design.
Compare VPS plans

Related: NVMe versus SSD for VPS workloads.