← Back to list

Managing System Snapshots with Snapper on Fedora 40

This guide provides a simple overview of using Snapper, a system snapshot tool, on Fedora 40, specifically designed for the Btrfs…

Naol Kumela · 2024-09-03 21:22 · 6 claps · 2.3 min read
#fedora-linux #gnu-linux #snapper #snapshot #time-shift
Open on Medium ↗
Wiki topics: 🔓 · Open Source

Managing System Snapshots with Snapper on Fedora 40

This guide provides a simple overview of using Snapper, a system snapshot tool, on Fedora 40, specifically designed for the Btrfs filesystem. It covers creating, deleting, and reverting system changes using both the command line and the Btrfs Assistant GUI. Additionally, it compares Snapper with Timeshift, highlighting its advantages for Fedora 40 users.

Snapper: Advantages for Fedora 40 Users

Snapper is a powerful tool that offers distinct advantages for Fedora 40 users, particularly when working with the Btrfs filesystem:

  • Btrfs Integration: Snapper is specifically designed to work seamlessly with Btrfs, leveraging its features like copy-on-write for efficient snapshot creation. This integration makes it a natural fit for Fedora 40.
  • Granular Control: Snapper enables fine-grained control over snapshot management, allowing for precise rollbacks to specific system states. This granular control is valuable for managing the complex structure of a Fedora system.
  • Automated Snapshot Cleanup: Snapper offers automated snapshot deletion based on user-defined policies. This helps maintain disk space efficiency, preventing unnecessary storage consumption.

Setting Up Snapper and Btrfs Assistant

  1. Installation: Begin by installing the necessary packages:
sudo dnf install snapper dnf-plugin-snapper btrfs-assistant

This command will install:

  • snapper: The primary snapshot management tool.
  • dnf-plugin-snapper: A DNF plugin that automatically creates snapshots before package upgrades, ensuring system integrity.
  • btrfs-assistant: A GUI tool for managing Snapper configurations and snapshots.

2. Configuration: To manage system-wide snapshots, create a Snapper configuration for the root filesystem:

sudo snapper create-config /

This command initializes Snapper for the / directory, allowing it to manage snapshots for the entire system.

Using Snapper from the Command Line

  1. Listing Snapshots: To view existing snapshots, run:
sudo snapper list

This will display a list of snapshots with their IDs, creation timestamps, and descriptions.

2. Creating a New Snapshot: To capture a specific system state:

sudo snapper create --description "My System Configuration"

This command creates a snapshot with the descriptive label “My System Configuration”. Use clear and informative descriptions for easy identification.

3. Deleting a Snapshot: To remove a snapshot:

sudo snapper delete <snapshot_id>

Replace <snapshot_id> with the actual ID (found using sudo snapper list).

4. Reverting Changes: To revert to a previous system state:

sudo snapper revert <snapshot_id>

This command will restore the system to the state captured in the specified snapshot.

Using Btrfs Assistant (GUI)

For users who prefer a graphical interface, Btrfs Assistant simplifies managing snapshots.

  • Snapshot Management: Create, delete, and view snapshots with a graphical interface.
  • Subvolume Management: Easily manage Btrfs subvolumes.
  • User-Friendly Interface: Designed for ease of use, making it accessible to all users.

Snapper vs. Timeshift: The Fedora 40 Advantage

While Timeshift is a popular snapshot tool, Snapper offers several advantages for Fedora 40 users:

  • Optimized for Btrfs: Snapper’s integration with Btrfs ensures efficient and reliable snapshot operations, leveraging Btrfs features.
  • System-Wide Coverage: Snapper captures the entire system state, including bootloaders, configurations, and user data, ensuring a complete snapshot.
  • Dedicated Tooling: Snapper is specifically designed for system snapshotting, optimized for performance and stability.

Conclusion

Snapper provides Fedora 40 users with powerful tools for managing system snapshots, enabling them to revert to previous states when necessary. Both the command line and the Btrfs Assistant GUI offer accessible and reliable ways to manage snapshots, ensuring system integrity and reliable rollback options.


메타데이터
post_id
834abd8ea1cd
slug
managing-system-snapshots-with-snapper-on-fedora-40-834abd8ea1cd
url
https://medium.com/@nkav2447/managing-system-snapshots-with-snapper-on-fedora-40-834abd8ea1cd
canonical_url
https://medium.com/@nkav2447/managing-system-snapshots-with-snapper-on-fedora-40-834abd8ea1cd
author_url
https://medium.com/@nkav2447
status
ok
fetched_at
2026-06-09 15:37:30