Skip to content
Log In Sign Up info@muvcloud.com

The Full Backup as the Base

A full backup copies everything selected, every time. It is the simplest to restore and the most expensive to create and store. Incremental and differential backups both build on a full backup and only add changes, which is why every schedule of these two types begins with one.

Incremental Backup

An incremental backup saves what changed since the previous backup, whether that one was full or incremental. Each run is small and fast. A restore needs the full backup plus every incremental after it, applied in order. If one incremental in the chain is damaged, the ones after it cannot be applied correctly.

Differential Backup

A differential backup saves everything that changed since the last full backup. Each run contains the changes of all the days before it, so it grows until the next full backup. A restore needs only two sets: the full backup and the latest differential.

A Week in Numbers

Assume a 100 GB full backup on Sunday and 5 GB of different files changed each day:

DayIncrementalDifferential
Monday5 GB5 GB
Tuesday5 GB10 GB
Wednesday5 GB15 GB
Thursday5 GB20 GB
Friday5 GB25 GB
Saturday5 GB30 GB
Week total30 GB105 GB

To restore Thursday's state, the incremental schedule needs five sets (Sunday plus Monday to Thursday), the differential schedule two (Sunday plus Thursday). When the same files change every day, differentials grow more slowly than in this example.

Side by Side

IncrementalDifferential
ContainsChanges since last backupChanges since last full
Size per runSmall, steadyGrows each day
Backup timeShortestGrows each day
Restore needsFull plus every incrementFull plus one
One damaged setBreaks the chain after itAffects that day only

Deduplicating Tools: Every Backup Stands Alone

Modern tools such as Borg and restic split data into chunks and store each chunk once. Every run only uploads new chunks, so it is as small as an incremental, yet every archive or snapshot refers to all the chunks it needs and can be restored on its own in one step. Old archives are removed with a prune rule without breaking newer ones. For most Linux servers this removes the need to choose between the two classic types.

rsync can build daily folders that each look like a full copy while storing only changed files. Files that did not change since the previous folder become hard links to it:

TODAY=$(date +%F)
rsync -a --delete --link-dest=/backup/latest /var/www/ /backup/$TODAY/
ln -sfn /backup/$TODAY /backup/latest

Each dated folder can be restored on its own, and deleting an old folder does not affect the others. On the first run, when /backup/latest does not exist yet, rsync copies everything. The options are explained in rsync command. A copy in another folder of the same server is not enough on its own; send it to another machine as well.

Choosing a Schedule

  • Weekly full, daily incremental: least storage, longest restore chain.
  • Weekly full, daily differential: more storage, two-step restore.
  • Deduplicated daily archives: keep, for example, 7 daily, 4 weekly, and 6 monthly, and let the tool prune the rest.

Run the job from cron, as in how to create a cron job, and decide the frequency from how much data you can afford to lose, explained in RPO vs RTO.

Test Restores

A backup is only proven when it has been restored. Restore a set to a test directory or a test server on a schedule, compare a few files, and load a database dump. Keep at least one copy in another location, as the 3-2-1 backup rule describes.

Updated:

Linux VPS with Full Root Access

MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.

Cloud VPS Plans Starting at2.99 $/mo Cheap Linux VPS

No Limits on Service or Support

You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

Support specialist
  • 100% customer satisfaction goal
  • Our own hardware
  • 24/7 ticket and email support
  • 4 countries with locations