Backups vs snapshots
A backup is a scheduled copy of your server kept for a number of days, while a snapshot is an image of the disk at one chosen moment, usually taken just before a risky change. CheapVPS offers the backup side as a daily add-on with 7 copies and restore by ticket; snapshots are not a console feature, so you create point-in-time copies yourself inside the OS with tools like restic, borg and database dumps.
Servers and storage guide, updated 2026-12-03
What is a backup?
A backup is a copy made on a schedule and kept for a defined time. Its purpose is recovery from things you notice late: a deleted folder, a broken upgrade discovered two days later, a compromised site. The key properties are regularity, retention (how many past copies you can go back to) and storage away from the original.
What is a snapshot?
A snapshot freezes the state of a disk or filesystem at one moment. On many platforms it is a button: click it before an upgrade, and roll back if the upgrade fails. Snapshots are fast to create because they usually record only the blocks that change afterwards.
A snapshot on the same storage as the original is not a real backup. If the disk or the host is lost, the snapshot goes with it. It shines for short-term undo, not for long-term safety.
What does CheapVPS offer?
| Feature | Available | How |
|---|---|---|
| Daily backups | Yes, add-on | Tick backups when ordering; 7 daily copies; +20% of the plan |
| Restore | Yes | Open a ticket naming the server and the day |
| Snapshots | Not in the console | Build point-in-time copies inside the OS |
For P4 the add-on costs $2.41 a month, so a 12-month term with backups totals $173.52. A restore puts the chosen day back on the server; details are in backups and restore.
How do you make a quick copy before an upgrade?
Before a major upgrade (for example a distribution release upgrade or a large application update), take a copy that you can return to in minutes. The fastest approach without snapshots is an archive of what changes:
tar -czf /root/pre-upgrade-$(date +%F).tar.gz /etc /var/www /opt/app
sudo -u postgres pg_dumpall | gzip > /root/pre-upgrade-db-$(date +%F).sql.gzThen copy both files off the server, because a copy on the same disk does not survive a lost disk:
rsync -av /root/pre-upgrade-* backup@198.51.100.20:/srv/copies/web1/If the upgrade goes wrong you can restore the files, or rebuild the server from a clean image and restore onto it.
Can you use LVM or btrfs snapshots inside the server?
Yes, if the filesystem layout supports them. Check what you have:
lsblk -f
findmnt /If the root filesystem is btrfs, take a read-only snapshot with:
btrfs subvolume snapshot -r / /.snapshots/root-$(date +%F)With LVM and free space in the volume group, lvcreate -s -L 5G -n root-snap vg0/root creates a copy-on-write snapshot. A plain ext4 or xfs root, which is common on minimal images, has neither. In that case you can still add LVM or btrfs for a data area, or simply rely on file-level tools below. Inside-OS snapshots live on the same disk, so treat them as undo points and keep real backups elsewhere.
How do you set up restic?
restic makes encrypted, deduplicated backups to many targets: another server over SFTP, an S3-compatible bucket or a local disk. Install and initialise:
apt install restic
export RESTIC_REPOSITORY=sftp:backup@198.51.100.20:/srv/restic/web1
export RESTIC_PASSWORD_FILE=/root/.restic-pass
restic initBack up, keep a sensible history and check the repository:
restic backup /etc /var/www /root/db-dumps
restic forget --keep-daily 7 --keep-weekly 4 --keep-monthly 6 --prune
restic checkRun it from a systemd timer each night. Store the password file somewhere safe outside the server too: without it, the backups cannot be read.
How does borg compare?
BorgBackup works on the same idea with an SSH-based repository. It is popular when the backup target is another Linux server running borg:
apt install borgbackup
borg init --encryption=repokey ssh://backup@198.51.100.20/srv/borg/web1
borg create --stats ssh://backup@198.51.100.20/srv/borg/web1::web1-{now} /etc /var/www
borg prune --keep-daily 7 --keep-weekly 4 ssh://backup@198.51.100.20/srv/borg/web1Export the repository key with borg key export and keep it offline. Both tools are on Rocky and AlmaLinux through EPEL (dnf install epel-release).
Why should databases be dumped first?
Copying the raw files of a running database can capture a half-written state. A dump is consistent:
mysqldump --single-transaction --all-databases | gzip > /root/db-dumps/mysql.sql.gz
sudo -u postgres pg_dumpall | gzip > /root/db-dumps/pg.sql.gzRun the dump a few minutes before the file backup, and include the dump folder in restic or borg. Test a restore into a scratch database every few months.
How do you prove a backup can be restored?
A backup you have never restored is a hope, not a plan. Once a month, pick one file and one database and bring them back somewhere harmless:
restic restore latest --target /tmp/restore-test --include /etc/nginx
diff -r /etc/nginx /tmp/restore-test/etc/nginx
rm -rf /tmp/restore-testFor borg, borg extract into an empty folder does the same. For databases, load the dump into a new, empty database and run a few queries you know the answers to. Write the steps down while you do them; during a real incident you will follow your own notes, not memory. If you also use the add-on, note how long a ticket restore takes on a test server so you know what to expect.
What is the 3-2-1 rule?
Keep 3 copies of your data, on 2 different kinds of storage, with 1 copy off site. For a VPS that might look like: the live server, the daily backup add-on, and a restic repository on a second server in another city or on storage of your choice. Each copy covers a different risk: a mistake, a lost server, a lost provider account. Remember that anyone with your account key can open the account, so keep one copy that the key alone cannot delete.
Questions about this guide
Can I take a snapshot from the console?
No. Use the daily backup add-on for scheduled copies, and archives, restic, borg or in-OS LVM and btrfs snapshots for point-in-time copies.
How many days do backups cover?
The add-on keeps 7 daily copies. Restores are requested by ticket, naming the server and the day you want.
Can I add backups to a running server?
Backups are chosen when you order the server. Until then, set up restic or borg yourself; see backups and restore.
Does a rebuild delete my backups?
A rebuild wipes the server disk. Keep your own off-server copy before any rebuild or delete.
Where should I store my own backups?
On a different server, ideally in another city, or in storage of your choice. Never only on the same disk.
Are restic backups encrypted?
Yes. restic encrypts everything with the repository password, and borg does the same with repokey encryption.