Off-site backups
Why a copy next to the data doesn’t save you, where to take it, how to limit key permissions, and what should be accessible if the machine is completely unavailable.
Updated August 23, 2026
A copy on the same disk protects you from exactly one thing — your own rm -rf mistake. Only a copy in another location saves you from an OS reinstall, loss of access, ransomware, or any failure that takes down the whole machine.
Where to take it
| Where | Pros | What to watch out for |
|---|---|---|
| Second VPS | Full control, fast link | Both machines with one provider — shared risk |
| Home computer or NAS | Cheap, physically separate | Needs a permanent address or the home side to initiate |
| S3 object storage | No maintenance, pay for volume | Check outbound traffic costs when restoring |
| Separate storage with SFTP access | Simple, cheap at large volumes | Usually no versioning on the storage side |
The principle is simple: the copy must survive the complete loss of the source machine. If both storages go down from a single event, you have one location.
Who pulls from whom
There are two options, and they protect against ransomware differently.
The machine pushes the copy. Simple, but the push key sits on the machine. An attacker who gets root will reach the storage too.
The storage pulls the copy itself. The key sits on the receiver, and the machine knows nothing about it. Safer, but requires the receiver to be able to reach the machine.
A compromise that covers both: the machine pushes, but the key on the receiver is restricted to write-only, with no delete permission.
command="rrsync -wo /srv/backup/vds",restrict ssh-ed25519 AAAA... vds-backup
With Restic, the same role is played by append-only mode — a repository you can only append to:
restic --repo sftp:backup@host:/srv/restic backup /data
In this case, the receiver deletes old snapshots on its own schedule, not the machine.
A key that sits on the machine and has the right to delete copies devalues the whole scheme. Ransomware looks for exactly that key first. Delete permissions must belong to someone else.
Availability check
You usually need a restore at the worst possible moment: the machine is down, you're panicking, and there's no time. Make sure in advance that you have:
- The storage address and credentials — written down outside this machine.
- The Restic repository password — in a password manager.
- The machine's root password — it's stored encrypted and shown by a button in the “Access” tab of the
/hosting/vds/m/<id>panel, but the panel is available only to you. - A list of what's where: which copy contains what.
Write this down in a short note and keep it off the VPS.
How much data to move
Bandwidth is up to 500 Mbps, but the bottleneck is usually on the receiver's side. Do the first full copy manually and at a quiet time; after that, only changes will go through. To limit the speed so it doesn't interfere with services:
rsync --bwlimit=10000 ...
restic backup --limit-upload 10000 ...
Values are in kilobytes per second.
Common mistakes
- Both copies with one provider in one place. That's one location, whatever you call it.
- The copy is being pushed, but no one knows it stopped. Set up a push check in Uptime Kuma.
- You've never tried a restore. See restore drill.
- Storage credentials are in a script that also ends up in the copy. Not fatal with encryption, but if you lose the storage along with the script, that's a hole.
What exactly to put in the copy is covered in what to back up; the methods are rsync and Restic.