Backing Up a Linux Desktop Properly
Linux is reliable.
Your SSD is not immortal.
Neither are your laptop, your home, your cloud account or the files you accidentally delete at 4:55pm on a Friday.
A Linux desktop can contain years of:
documents
photographs
development projects
browser profiles
SSH keys
application settings
locally stored email
virtual machines
Losing the computer does not have to mean losing that information.
But only if the backup was designed before something goes wrong.
A proper Linux backup should answer six questions:
What are you backing up?
How often?
Where is another copy kept?
Can you recover an older version?
Is sensitive data encrypted?
Have you actually restored anything from it?
If you cannot answer the last question, you do not yet know whether the backup works.
A Backup Is Not the Same as Synchronisation
This is the first distinction to understand.
Suppose your Documents folder is synchronised to cloud storage.
You accidentally delete:
accounts-2026.xlsx
The deletion synchronises.
Or ransomware encrypts:
customer-database.ods
and the changed file synchronises.
Synchronisation has worked perfectly.
That does not necessarily mean you have a usable historical backup.
A proper backup should let you return to:
the file as it existed yesterday
or:
the version from last week
before the problem occurred.
Cloud synchronisation can form part of your protection strategy.
It should not automatically be treated as the whole strategy.
Start With 3-2-1 — Then Add Isolation
A useful starting point remains the 3-2-1 principle:
3 copies of important data
on:
2 separate storage locations or systems
with:
1 copy off-site.
The NCSC continues to recommend multiple backups in separate locations and specifically warns that ransomware can target connected USB, network and cloud backups. It therefore also recommends maintaining a copy that is offline or otherwise isolated from the live environment. (ncsc.gov.uk)
For a Linux desktop, that might look like:
Copy 1: live data on the laptop
Copy 2: encrypted backup on an external drive or NAS
Copy 3: encrypted off-site/cloud repository
That protects against several different failures.
Laptop SSD dies?
Use the local backup.
Laptop and external disk are stolen together?
Use the off-site backup.
Cloud account becomes unavailable?
The local copy remains.
What Should You Back Up?
For most Linux desktop users, start with the home directory:
/home/username
or:
~
Obvious folders include:
~/Documents
~/Pictures
~/Desktop
~/Projects
~/Videos
But Linux hides a lot of important configuration inside dotfiles.
Examples include:
~/.config
~/.local/share
~/.ssh
~/.gnupg
~/.mozilla
~/.thunderbird
~/.var/app
Depending on what you use, these can contain:
SSH keys
GPG keys
browser profiles
locally stored mail
application settings
Flatpak application data
development configuration
Do not assume:
“I backed up Documents, therefore everything important is protected.”
What Usually Doesn't Need Backing Up?
There is little value repeatedly backing up data that can be recreated easily.
Typical exclusions can include:
~/.cache
~/.local/share/Trash
and, depending on your workflow:
package caches
temporary files
browser caches
downloaded ISO files
rebuildable node_modules
disposable VM snapshots
Be careful with:
~/Downloads
Some people treat it as disposable.
Others leave their entire working life in there.
Inspect it before excluding it.
Do You Need a Full-System Backup?
Often, no.
For a normal Linux workstation, a practical recovery plan may be:
backup personal data + configuration + keys + application list
then reinstall Linux if the operating system itself dies.
That has several advantages:
smaller backups
easier version history
simpler restoration
easier migration to new hardware
You can also record installed applications.
Ubuntu/Debian:
apt-mark showmanual > ~/manually-installed-packages.txt
Fedora:
dnf repoquery --userinstalled > ~/installed-packages.txt
Arch:
pacman -Qqe > ~/installed-packages.txt
Flatpak:
flatpak list --app --columns=application > ~/flatpak-apps.txt
Store those lists inside the directory being backed up.
A complete disk image can still be useful before:
replacing a drive
changing partitions
performing risky system work
but it does not need to be your everyday backup method.
The Easiest Desktop Option: Déjà Dup
For users who do not want to write scripts, Déjà Dup is now an excellent place to start.
The current GNOME release uses Restic behind the scenes and provides:
encrypted backups
incremental/versioned backups
automatic scheduling
local backup locations
remote/cloud destinations
straightforward restoration. (apps.gnome.org)
That makes it particularly suitable for a normal Ubuntu, Fedora or GNOME desktop user who wants:
“Back up my files automatically and let me restore an old version.”
Enable automatic backups.
Select the important home-directory content.
Exclude obvious cache/temp data.
Choose a destination that is not the laptop's own SSD.
Then test a restore.
A graphical backup tool is not somehow inferior because it does not make you type commands.
Automation and successful recovery matter far more.
For More Control: Restic
If you are comfortable with the command line, Restic is one of the strongest general Linux backup options.
It provides:
encryption
snapshots
deduplication
integrity checking
retention
local and remote repositories
Restic describes a repository as encrypted storage containing multiple snapshots and supports repositories on local storage as well as various remote backends. (restic.readthedocs.io)
For example, initialise a repository:
restic -r /mnt/backup/restic-repo init
Then back up your home directory:
restic -r /mnt/backup/restic-repo backup /home/carl \
--exclude /home/carl/.cache \
--exclude /home/carl/.local/share/Trash
List available snapshots:
restic -r /mnt/backup/restic-repo snapshots
And restore into a temporary directory:
restic -r /mnt/backup/restic-repo restore latest \
--target /tmp/restic-restore
Restic specifically supports restoring snapshots into another directory, which makes testing recovery without overwriting your live files straightforward. (restic.readthedocs.io)
Test the Command Before the Real Backup
Restic supports:
--dry-run
for backup operations. (restic.readthedocs.io)
That is useful when you're building exclusions or automation.
For example:
restic -r /mnt/backup/restic-repo backup /home/carl \
--exclude /home/carl/.cache \
--dry-run
Inspect what will be included.
Then run the real backup.
What About BorgBackup?
Borg remains another excellent encrypted, deduplicating backup system.
However, I would simplify this section compared with the existing article because Borg is currently in a 1.x-to-2.x transition, and some command syntax differs between the stable 1.4 line and Borg 2 development documentation. (borgbackup.readthedocs.io) (borgbackup.readthedocs.io)
So the safest article advice in 2026 is:
Borg is an excellent choice, but follow the documentation for the major version actually installed by your distribution.
Do not blindly paste commands written for another Borg major version.
rsync Is Useful — but a Mirror Is Not a Complete Backup
rsync remains one of the best Linux file-copying tools.
For example:
rsync -aHAX /home/carl/ /mnt/backup/home-carl/
But this creates essentially a second current copy.
If you use:
--delete
and accidentally delete files from the source, a later run may delete them from the destination as well.
So:
rsync mirror ≠ versioned backup.
rsync can absolutely form part of a backup system, but use:
dated snapshots
rsnapshot
hard-linked rotations
filesystem snapshots
if you need historical recovery.
For most desktop users starting fresh, Restic or Déjà Dup provides versioning more cleanly.
Timeshift Is Not Your Documents Backup
This deserves to stay because it is frequently misunderstood.
Timeshift is primarily a system-restore tool.
The Linux Mint Timeshift project explicitly says it is designed to protect system files and settings, while user documents, pictures and music are excluded by default. (github.com)
Timeshift is excellent for:
“That update broke my Linux installation—return the system to yesterday.”
It is not the right sole answer to:
“My SSD died and I need my photographs back.”
A sensible combination could be:
Timeshift → operating-system snapshots
plus:
Déjà Dup / Restic / Borg → personal data
External Drive Backups
An external USB drive is still extremely useful.
Check where it is actually mounted:
lsblk -f
and:
findmnt
Do not assume:
/dev/sdb1
will always remain the same device name.
Then run your backup.
When finished:
1. Verify it completed.
2. Safely unmount the drive.
3. Disconnect it.
4. Store it somewhere sensible.
The NCSC specifically recommends that removable backup media should not remain connected when it is not being used, because malware affecting the computer may also reach connected storage. Its small-business backup guidance was reviewed in July 2026. (ncsc.gov.uk)
NAS Backup
A NAS can be excellent for automated local backup.
It is:
always available
convenient
suitable for several PCs
often much faster to restore from than cloud storage
But an always-connected NAS is still reachable from the network.
It can therefore be affected by:
compromised credentials
ransomware
hardware failure
theft
fire
Use a NAS as one backup layer.
Do not make it the only recovery copy.
Off-Site or Cloud Backup
At least one useful copy should survive losing:
the computer + local backup + building.
That might be:
encrypted cloud storage
remote server
NAS at another location
external disk stored elsewhere
Encryption is particularly important when the backup leaves your physical control.
Restic and Borg support encrypted repositories, while current Déjà Dup encrypts backups as part of its normal workflow. (apps.gnome.org)
Protect the Backup Password
Encryption introduces another failure mode:
you successfully back up everything and then lose the decryption credentials.
Store backup passwords and recovery material somewhere secure and independent from the Linux desktop itself.
Do not keep the only copy of:
backup-password.txt
inside the laptop that just failed.
Also consider critical material such as:
SSH private keys
GPG keys
recovery codes
encryption keys
The NCSC specifically recommends ensuring critical external credentials and system state are included in recovery planning, not merely ordinary user documents. (ncsc.gov.uk)
Automate the Backup
A backup that depends on remembering:
“Plug the disk in every Friday”
eventually becomes:
“I think I last backed it up around Christmas.”
Automate where possible.
Déjà Dup provides built-in automatic scheduling. (teams.pages.gitlab.gnome.org)
Restic can be scheduled using:
systemd timers
cron
tools such as resticprofile
because Restic itself runs when invoked rather than providing its own scheduling daemon. (restic.readthedocs.io)
Automation should also produce a result you can monitor.
A silently failing scheduled backup is not much protection.
Retain More Than One Version
Do not retain only:
latest backup.
Imagine a file is corrupted on Monday.
Nobody notices until three weeks later.
If your system has already overwritten every previous backup with the corrupted version, you have no clean recovery point.
The NCSC recommends retaining historical backups rather than relying on a single rolling copy and specifically advises considering how long corruption or infection might remain undetected. (ncsc.gov.uk)
A sensible desktop policy might keep:
recent daily versions
weekly versions
monthly history
The exact retention depends on:
storage
importance
rate of change
The Most Important Step: Test the Restore
A backup job reporting:
Success
proves that the backup program believes it wrote some data.
It does not prove that you can recover your files when the laptop is dead.
At least periodically:
1. Choose an ordinary document.
2. Restore an old version to a temporary folder.
3. Open it.
4. Confirm the contents are correct.
Then occasionally test something more substantial:
project folder
SSH configuration
browser profile
photographs
The NCSC's 2026 guidance explicitly says organisations should know how to restore their files and regularly test that backups work as expected. (ncsc.gov.uk)
The restore is the product.
The backup job is merely how you manufacture it.
A Sensible Linux Desktop Backup Setup
For most users, I would recommend something conceptually like:
Daily automated backup
Use:
Déjà Dup or Restic
to protect:
home directory
important dotfiles
SSH/GPG keys
projects
application data
with version history.
Local copy
Store on:
external drive or NAS
for fast restoration.
Off-site copy
Keep an:
encrypted remote/cloud backup
for fire, theft and major local incidents.
System recovery
Optionally use:
Timeshift
for Linux system snapshots.
Recovery verification
Regularly:
restore some files and prove they work.
That is dramatically more useful than accumulating seven different Linux backup applications without ever testing any of them.
The Linux Backup Checklist
Before saying your Linux PC is properly backed up, confirm:
1. Important personal files are included.
2. Hidden configuration and important keys have been considered.
3. Version history exists.
4. At least one copy is outside the laptop.
5. At least one useful copy is off-site or isolated.
6. Sensitive backups are encrypted.
7. Backup credentials are stored safely.
8. Backups run automatically or on a reliable schedule.
9. Failures are noticed.
10. You have successfully restored a file.
The last point is the one that turns:
“I have a backup system”
into:
“I know I can recover.”
How Hamilton Group Can Help
Hamilton Group can help businesses using Linux design backup and recovery around the information they actually need rather than simply copying files to another disk.
We can assist with:
Linux desktop backup
Linux server backup
encrypted backups
local and cloud backup
NAS
Restic and other backup platforms
ransomware-resistant backup
backup monitoring
retention
restore testing
disaster recovery
The objective is not simply to see:
Backup completed successfully.
It is to know that if the computer is lost, stolen, damaged or compromised, the important information can actually be recovered.
Visit hgmssp.com or call 01423 438 953.
0 comments
- Be the first to comment.