A useful Linux desktop backup must do two things: preserve files you cannot replace, and let you recover them without relying on the computer that failed. A copy on the same SSD does not meet that test. Neither does an encrypted archive whose only password lives on that SSD.
For most desktop users, a sensible arrangement is an automatic, versioned backup of personal files to a separate device, another copy stored elsewhere, and optional system snapshots for reversing troublesome changes. These layers serve different purposes. Recovering yesterday’s spreadsheet should not require rolling back the operating system.
This guide covers what to save, where to keep it, how to choose a backup application, and how to restore files or rebuild a desktop. The aim is a repeatable process, not a collection of drives labelled “backup” with increasingly uncertain contents.
Separate File Backups, System Snapshots and Disk Images
Start with the failure you want to recover from. Accidentally deleting a folder, installing a broken update and losing a laptop are different problems. One recovery method rarely handles all three equally well.
| Method | Main purpose | What to watch |
|---|---|---|
| Versioned file backup | Recover documents, photographs, projects and earlier file versions | Coverage depends on selected folders, exclusions and retention |
| System snapshot | Return operating system files and settings to an earlier state | A local snapshot may disappear with the drive holding it |
| Disk image | Recreate the partitions or disk captured by the imaging process | Restoration can overwrite the destination and may need boot adjustments |
| File synchronization | Keep working files available across devices | Deletions and unwanted edits can propagate unless recoverable history exists |
Timeshift belongs primarily in the system recovery category. It protects system files and settings, excludes users’ home directories by default, and warns against including personal data because a rollback can overwrite it. Treat Timeshift’s system restore design as a complement to personal backups, not their replacement.
A filesystem snapshot also needs careful interpretation. A local Btrfs snapshot initially shares data blocks with its original subvolume. Damage to shared storage can affect both, which is why the Btrfs documentation distinguishes snapshots from backups. Replicating data to independent storage changes the protection; creating another local snapshot does not.
Synchronization is useful, but ask how you would recover a folder deleted a month ago. If the answer depends on a provider’s trash or version history, check its retention and test recovery. A synchronized folder without usable history is another working copy, not a dependable historical backup.
Decide What Your Linux Desktop Backup Must Include
Start with Your Home Directory
Your home directory usually holds documents, photographs, downloads, desktop files and much of your application data. It is the natural starting point, but selecting only the visible Documents and Pictures folders leaves gaps.
Reveal hidden files in your file manager and review what applications store there. Directories such as ~/.config and ~/.local/share can contain preferences, profiles and locally stored content. Browser profiles, email archives and password databases deserve attention, though their locations vary. Our guide to the Linux filesystem and directory structure explains how these paths fit together.
Check application packaging too. Flatpak applications commonly keep user data beneath ~/.var/app, while Snap applications can use ~/snap. These locations should not disappear from your plan simply because they are hidden or unfamiliar. The differences between native packages, Flatpak and Snap matter when identifying what to restore.
Do not overlook files outside your home directory. A second internal disk, a shared household folder or a custom project location needs explicit coverage. Backing up a shortcut or symbolic link does not necessarily include the files at its destination. Browse an actual backup to confirm those files are present.
Exclude Replaceable Data, Not Inconvenient Data
Caches, trash, temporary files and reproducible build output are reasonable candidates for exclusion. Large downloaded installers may also be expendable. Make those decisions deliberately rather than copying an exclusion list from another computer.
Game installations can consume substantial space, but save files, mods and screenshots may sit beside them. Before excluding an entire game directory, identify what cannot be downloaded again. Our guide to gaming on Linux with Steam and Proton provides the broader context for those installations.
Check Downloads before excluding it. Despite the name, it often becomes permanent storage for invoices, signed documents and the only copy of an attachment. Folder names do not enforce good filing habits.
Handle Running Applications and Private Data Carefully
A backup can read different files at different moments while an application is changing them. For databases, mail stores and other interdependent data, close the application or use its supported export or backup process. Saving your work first remains worthwhile, even with automatic backups.
Shut down virtual machines before backing up their disk files unless your process supports consistent live backups. Include the configuration needed to recreate them, not just the virtual disk. See running virtual machines with KVM and QEMU for the related storage concepts.
Preserve SSH credentials, encryption material and recovery codes securely. Also record installed applications and unusual configuration changes. Developers should include uncommitted work, local repositories and project data; a remote Git repository does not contain files you never committed or pushed. Keep those items in the backup plan for your Linux development workstation.
Choose Storage That Survives the Same Failure
The familiar 3–2–1 approach is a useful starting point: three copies of important data, including the working copy, across two storage types, with one copy elsewhere. Apply the principle rather than treating the numbers as a guarantee. Three copies beside the same laptop still share obvious risks.
External Drives and Network Storage
An external drive provides a straightforward first destination. Choose capacity for your selected files, retained history and expected growth. A drive only slightly larger than the initial backup leaves little room for older versions.
A network attached storage device can make backups easier to run without connecting a cable. It still needs protection of its own. A desktop and NAS in the same room can share exposure to theft, fire or electrical damage. RAID can help maintain availability after some disk failures; it does not recover every deleted or corrupted file.
For another location, consider an encrypted remote repository or a second external drive rotated elsewhere. Keep the desktop process manageable. If you also administer servers, our guide to automated offsite backups and recovery testing covers the more demanding operational side.
Keep One Copy Outside Everyday Reach
A permanently connected backup drive is convenient, but it remains accessible to software running with sufficient permissions. Keep an offline copy where practical, and disconnect removable storage after completed backups. Offline, encrypted backups and regular recovery tests are central recommendations in the joint CISA, FBI, NSA and MS-ISAC StopRansomware Guide.
Encryption protects confidentiality, not availability. An encrypted archive can still be deleted or damaged. Conversely, a disconnected drive does not protect privacy if someone steals it and its contents are unencrypted. Use both protections where they address your risks.
Choose a Backup Application You Can Restore From
For a personal desktop, start with an application whose scheduling, storage support and recovery process you can maintain. Advanced features are useful only if you configure them and notice when they stop working.
Déjà Dup for a Straightforward Desktop Workflow
Déjà Dup provides controls for included folders, ignored folders, storage and automatic scheduling. Its documented defaults include the home folder but exclude Downloads and Trash, alongside other ignored locations. Review these rather than assuming “home folder” means everything. The Déjà Dup backup configuration documentation details those settings.
It is a reasonable starting point when you want a graphical workflow for personal files. Check the version supplied by your distribution before following screenshots or older tutorials, since interfaces and backup formats can change.
Pika Backup for Browsable Personal Archives
Pika Backup uses BorgBackup and supports scheduled backups, local and remote destinations, encryption, and browsing saved archives through a file manager. Its stated scope is personal data, not complete system recovery. The official Pika Backup application page sets out those capabilities.
That separation suits a desktop rebuilt by reinstalling Linux and then restoring personal files. Before committing, confirm that your intended destination works and that you can recover an archive from another installation.
Restic or Borg for More Control
A directly managed backup engine can suit users who want control over repository layout, scheduling and maintenance. The trade is responsibility: you must arrange automation, protect credentials, monitor failures and document restoration.
Do not assume graphical applications and their underlying engines share every repository format or configuration. Record which application created each repository. When replacing a backup tool, keep the old repository and a working recovery method until you have tested the replacement.
Set Up Your First Backup Without Leaving Gaps
The following process works across desktop applications, although button names differ. Complete the first recovery test before calling the setup finished.
- Identify the destination. Check the drive’s label, capacity and existing contents. Formatting erases data, so do not approve it casually. Keep the backup destination outside the folders being backed up.
- Review coverage. Include personal files, hidden application data and any additional data locations. Read both your own exclusions and the application’s defaults.
- Enable encryption. Choose a strong passphrase and save recovery information somewhere accessible without this computer. Test access rather than trusting a remembered password.
- Configure scheduling and retention. Choose a frequency that matches how much recent work you could tolerate losing. Keep older versions long enough to notice mistakes.
- Complete and inspect the first run. Read warnings, browse the saved contents and restore sample files into a separate folder.
Set Frequency Around Acceptable Data Loss
Ask how much work you could repeat. If losing a day of edits would be unacceptable, a nightly backup is not frequent enough. Hourly protection may suit active documents; less frequently changed collections can follow another schedule.
Distinguish the configured schedule from the last successful backup. Sleeping laptops, disconnected drives, unavailable networks and expired credentials can prevent scheduled work from completing. Check the actual completion timestamp, especially after travel or changes to your login and storage accounts.
Retain Versions Long Enough to Find Mistakes
Keeping only the newest backup replaces yesterday’s good file with today’s damaged one. As a starting policy, consider daily versions for a couple of weeks, weekly versions for several months and selected monthly versions for longer. These are planning suggestions, not universal requirements.
Adjust retention to your work. An accountant may need older records; a large media collection may need fewer versions of unchanged files. Versioned tools can reuse stored data, but that does not make history free. Changed or deleted content can continue occupying space while retained versions reference it.
Use the application’s retention and maintenance controls. Do not manually delete unfamiliar files inside a backup repository to free space. Its indexes and stored data may be shared across many restore points.
Document Access Before You Need It
Keep a short recovery note containing the application name, repository location, account requirements, encryption recovery method and last successful test. Store a copy independently of the backed up computer.
Some encryption arrangements require more than a memorized password. Borg repositories using keyfile encryption need an independent copy of that encryption material; an exported Borg key remains protected by its passphrase. Follow the Borg encryption key backup documentation for the mode in use.
A password manager helps only if you can unlock it after losing the laptop. Avoid circular recovery arrangements where the password manager needs a backup whose password exists only inside that manager.
Test Restoration, Not Just Backup Completion
A successful backup message confirms a job finished. It does not prove that every wanted folder was included, that you retained the right version, or that a replacement computer can open the repository.
Restore a small but varied sample: a recent document, an older version, a photograph, a hidden configuration file and something from an additional data drive. Put them in a new temporary folder. Open them with the relevant applications, rather than checking filenames alone.
Test metadata where it matters. Permissions, ownership, symbolic links and extended attributes can affect how restored files behave. File manager copying is not automatically equivalent to a metadata preserving restore. Our guide to Linux file permissions and ownership explains what to inspect.
Run repository integrity checks too. Restic distinguishes structural checks from reading and verifying the stored backup data; its default check does not perform the latter in full. The Restic repository integrity documentation describes the difference and the extra transfer costs a full data check can create.
Repeat a practical restore after changing applications, destinations, encryption settings or major software versions. Periodically test from another installation so that cached credentials and configuration on your everyday desktop cannot conceal missing recovery information.
Restore Deleted or Overwritten Files Safely
For an ordinary mistake, avoid a system rollback. Open your backup application, select the correct repository and choose a restore point from before the deletion or unwanted edit.
Restore into a separate folder first. Compare the recovered file with any current copy before replacing anything. This protects newer work and helps avoid restoring the wrong version simply because its filename looks familiar.
Close the relevant application before putting restored profiles, databases or configuration back into place. Keep a copy of the current state until the application opens successfully. If the fault appeared recently, try an earlier restore point rather than repeatedly restoring the same damaged content.
If a file is missing from every archive, inspect exclusions, alternate storage locations and other user accounts. Do not edit the repository’s internal files in an attempt to make missing content appear.
Rebuild a Desktop After Drive Failure or Reinstallation
When a drive fails, file backups can still provide a clean recovery route: install Linux, reinstall applications and restore personal data. This may be more manageable than trying to transplant an old operating system installation onto different hardware.
Before installation, identify every connected drive and disconnect backup storage when practical. That reduces the chance of selecting it as an installation target. Our guide to installing Linux on your computer covers the installation process separately.
Restore Personal Data Before Desktop Customization
After installation, update the system and install a compatible recovery application. Connect the backup destination, locate the existing repository and provide the required credentials. Recover important working documents before spending time rebuilding themes, extensions and shortcuts.
Restore application settings selectively, especially when changing distributions or desktop versions. Copying an old configuration directory wholesale can reintroduce the fault you were trying to escape. Start with a working application, close it, then restore the data or settings it needs.
Reinstall applications through their supported package systems rather than copying installed program files from an old root filesystem. Our guide to APT, DNF and Pacman explains the package management side of rebuilding.
Check ownership if files came from another installation. Linux associates ownership with numeric user and group identifiers, so matching account names alone does not prove a match. Verify that the intended user can read and modify restored files without making private data broadly accessible.
Keep Recovery Media Separate
A working installation USB is useful when the desktop will not start. Prepare and test one before an incident, using the guide to creating a bootable Linux USB drive. Keep it separate from your only backup device.
A live session can help access storage or run recovery software, but it does not remove encryption requirements. If a drive is showing signs of physical failure and contains irreplaceable files without another copy, stop unnecessary writes and consider professional recovery before attempting repairs.
Use System Rollback for System Problems
A previously working snapshot can help reverse a system change, but first preserve any newer personal files. Inspect what the snapshot includes and confirm the intended target before accepting a rollback. Do not assume it covers a separate boot partition, every data location or all changes made since capture.
Disk imaging offers another route when you need the captured installation back. Prefer an offline capture or a tool supported consistency method, and verify the image. Restoration normally overwrites the selected destination, making drive identification a serious step rather than a routine click.
Neither approach guarantees recovery from every startup fault. Bootloader problems, hardware failures and unavailable encrypted volumes need diagnosis. The child guide to recovering a Linux system that will not boot covers that troubleshooting without turning a file restore into unnecessary system surgery.
Keep the Backup Routine Small Enough to Maintain
A practical routine is to check recent completion status weekly, connect or rotate offline storage on a schedule, and perform occasional restores. Review exclusions when you add applications or move data. Review capacity before a full destination starts blocking new backups.
After a recovery, resume backups and confirm they include the restored locations. Keep the previous repository until the rebuilt desktop works and you have tested a new restore point. If compromise caused the incident, avoid connecting trusted offline backups to the suspect installation; recover through a clean environment.
The standard is straightforward: you can find the files, access the backup without the original computer, and restore a usable version. Everything else—the application, drive arrangement and schedule—should make that result easier to repeat.