TechBuzzPro

Backup Data on Pop!_OS with Timeshift – Step‑by‑Step Guide

· 6 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step‑By‑Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can back up data on Pop!_OS using Timeshift by creating system snapshots that can be restored later.

Timeshift works like a version control system for your entire Linux installation. It records the state of system files, installed packages, and user‑selected directories at a specific point in time. If an update breaks your desktop, a driver causes instability, or you simply want to revert to a clean state, you can roll back to a previous snapshot without reinstalling the OS.

What You'll Need

  • Pop!_OS (any recent version that supports the apt package manager)
  • Administrative (sudo) privileges on the machine
  • Timeshift installed – either from the Pop!_Shop or via the terminal
  • A separate storage location for snapshots (another internal partition, an external USB drive, or a network share). Using a different physical device protects you if the primary drive fails.

Step‑By‑Step

  1. Install Timeshift. Open a terminal and run:
    sudo apt update && sudo apt install timeshift
    This pulls the latest stable package from the Pop!_OS repositories.
  2. Launch Timeshift. Search for “Timeshift” in the application menu or run sudo timeshift-gtk from the terminal. The graphical interface requires root, so you will be prompted for your password.
  3. Select a snapshot type. Timeshift offers two modes: RSYNC (default, works on most file systems) and BTRFS (only for BTRFS‑formatted partitions). Choose RSYNC unless you know your root partition uses BTRFS.
  4. Choose a destination. Click the drop‑down list under “Location”. Pick the external drive or secondary partition you prepared earlier. Timeshift will create a folder called timeshift on that device and store snapshots there.
  5. Configure schedule and retention. In the “Schedule” tab, enable daily, weekly, and monthly snapshots as desired. Adjust the “Number of snapshots to keep” fields – a common balance is 5 daily, 4 weekly, and 3 monthly snapshots. This prevents the backup drive from filling up quickly.
  6. Select which files to include. By default Timeshift backs up only system files. If you want to protect personal data (documents, configuration files in ~/), click the “Filters” button, then the “Include” tab, and add /home or specific sub‑folders. Be aware that adding large home directories will increase snapshot size considerably.
  7. Create the first snapshot. Click the “Create” button. Timeshift will display a progress bar and list files being copied. When the process finishes, you will see a confirmation message with the snapshot name (e.g., “2024‑11‑02_12‑00‑00”).
  8. Verify the snapshot. Select the newly created entry in the list and press the “Browse” button. This opens a file manager view of the snapshot’s contents. Confirm that essential system directories (e.g., /etc, /usr) are present.
  9. Set automatic pruning. Return to the “Schedule” tab and ensure the “Delete old snapshots automatically” option is checked. Timeshift will now delete the oldest snapshots once the retention limits are reached.
  10. Test a restore (optional but recommended). Reboot your machine, hold Shift during boot to access the GRUB menu, and choose the “Advanced options for Pop!_OS” entry. Select the “Timeshift” recovery option if it appears, or boot normally and later use Timeshift’s “Restore” button to roll back to the snapshot you just created. This confirms that the restore process works before you ever need it.

Common Mistakes

  • Saving snapshots on the same partition as the OS. If the primary drive fails, both the system and its backups disappear. Always use a separate physical device.
  • Choosing BTRFS mode on a non‑BTRFS file system. Timeshift will refuse to start or produce errors. Verify the file‑system type with df -T before selecting BTRFS.
  • Excluding /home unintentionally. New users often think Timeshift backs up personal files automatically. Unless you add /home to the include list, only system files are saved.
  • Running out of space on the backup drive. Timeshift will stop creating new snapshots and may delete older ones unexpectedly if the drive fills up. Monitor free space regularly.
  • Using the “Delete” button on a snapshot you still need. Deleting a snapshot is irreversible. Double‑check before confirming.

Tips

  • Mount external drives at a fixed mount point (e.g., /mnt/backup) by adding an entry to /etc/fstab. This prevents Timeshift from failing when the drive is mounted at a different path after a reboot.
  • Enable “Create snapshot before package installation” in the Settings tab. This automatically saves a snapshot before any apt operation, giving you a safety net for risky upgrades.
  • Use the command‑line interface for scripting: sudo timeshift --create --comments "pre‑upgrade" can be added to a pre‑upgrade script.
  • Compress snapshots by enabling “Use rsync compression” (the “-z” flag) if you are backing up to a slower USB 2.0 drive.
  • Exclude cache directories (e.g., /var/cache) to keep snapshot size small while still protecting configuration files.

Troubleshooting

Timeshift won’t start or shows “Failed to open device”. Verify that the backup drive is correctly mounted and that you have root privileges. Run lsblk to confirm the device appears, then mount it manually if necessary.

Snapshots are not being created on schedule. Check that the cron service (or systemd‑timer for newer versions) is active. You can restart the timer with sudo systemctl restart timeshift.timer. Also ensure the system clock is accurate; an incorrect date can cause the scheduler to skip runs.

Restores fail with “Cannot mount snapshot”. This often indicates a corrupted snapshot or a missing BTRFS subvolume. Delete the problematic snapshot from the list and create a fresh one. If corruption recurs, test the backup drive for hardware errors using smartctl.

Running out of space during a snapshot. Reduce the number of retained snapshots, exclude large directories, or switch to a larger external drive. You can also enable “Delete old snapshots automatically” if it was disabled.

Permission denied errors when browsing a snapshot. Timeshift stores snapshots owned by root. Use the “Browse” button inside the GUI, which runs a file manager with elevated permissions, or prepend sudo to commands that need access (e.g., sudo ls /timeshift/snapshots/2024‑11‑02_12‑00‑00).

Frequently Asked Questions

Do Timeshift snapshots include my personal files?

By default only system files are saved. To include personal data you must add /home or specific folders in the Filters → Include tab.

Can I restore a single file instead of the whole system?

Yes. Use the “Browse” button on a snapshot, navigate to the desired file, and copy it back to its original location. This does not require a full system restore.

Is Timeshift compatible with encrypted home directories?

Timeshift can back up encrypted home folders, but the backup will contain the encrypted data as it appears on disk. To restore usable files you must decrypt them after the restore, typically by logging into the user account.

What is the difference between RSYNC and BTRFS modes?

RSYNC works on any ext4, XFS, or similar file system and copies files to a separate location. BTRFS mode uses native sub‑volume snapshots, which are faster and take less space but require the root partition to be formatted as BTRFS.

Will Timeshift protect me from accidental file deletion?

Only if the deleted file resides in a directory that is part of a snapshot. Files outside the included paths (e.g., a custom data folder not added to Filters) will not be recoverable via Timeshift.

How often should I create manual snapshots?

Before any major change—such as a kernel upgrade, driver install, or large software suite—run a manual snapshot. This adds an extra safety net beyond the scheduled daily backups.