Format a Second SSD and Automate Btrbk Snapshots¶
Steps to format a secondary SSD and set up automated Btrbk snapshots on Fedora KDE.
Tested on: Fedora 44 KDE Plasma
Prerequisites¶
- Fedora KDE running on Btrfs (primary drive).
- A secondary internal SSD (e.g., 1TB NVMe drive).
- Administrator (
sudo) access.
Phase 1: Wipe & Format Secondary SSD¶
- Open KDE Partition Manager (
partitionmanager). - Identify the secondary SSD (e.g.,
/dev/nvme1n1, ~953 GiB) by verifying drive size and partition scheme. - Select the drive and click New Partition Table -> Choose GPT -> Click Apply.
- Right-click the unallocated space -> Click New:
- File system:
btrfs - Label:
Storage - Click Apply to write the filesystem. The new partition will be at
/dev/nvme1n1p1.
Phase 2: Configure Auto-Mounting (/etc/fstab)¶
1. Create the Mount Directory¶
2. Retrieve Partition UUID¶
Locate and copy the UUID="..." value from the output.
3. Edit /etc/fstab¶
Add the following line at the bottom of the file (replace with your actual UUID):
Mount Option Breakdown:
defaults: Enables standard read/write, boot auto-mount, and execution flags.noatime: Disables access timestamp updates to reduce SSD write wear and improve read speeds.0: Ignores drive for legacy dump backups.2: Sets secondary priority for boot filesystem checks (fsck).
4. Mount & Set User Permissions¶
# Test mount configuration without rebooting
sudo mount -a
# Transfer directory ownership to your active user
sudo chown -R $USER:$USER /mnt/storage
Phase 3: Automated Btrfs Snapshots with btrbk¶
1. Install btrbk¶
2. Create the Backup Destination Directory¶
3. Configure /etc/btrbk/btrbk.conf¶
Replace the file contents with the following syntax (compatible with btrbk v0.32+):
# Local retention on primary boot SSD (keeps drive clean)
snapshot_preserve_min latest
snapshot_preserve 2d
# Retention on secondary 1TB backup SSD
target_preserve_min latest
target_preserve 14d 8w 6m
snapshot_dir .snapshots
volume /
subvolume .
target /mnt/storage/btrfs-backups
4. Execute Initial Backup & Verification¶
5. Enable Systemd Timer for Background Automation¶
Maintenance & Recovery Quick Reference¶
Manual Backup Run¶
To force an immediate snapshot and sync before major system changes:
Check Automated Timer Status¶
Restoring from a Snapshot¶
If a system update causes instability, use Btrfs Assistant (GUI):
- Open Btrfs Assistant from the KDE Launcher.
- Navigate to the Snapper / Btrbk tab.
- Select the desired pre-update snapshot timestamp.
- Click Restore Snapshot and reboot.