this post was submitted on 15 Sep 2024
7 points (76.9% liked)

Arch Linux

7739 readers
1 users here now

The beloved lightweight distro

founded 4 years ago
MODERATORS
 

Hi everyone, hope you guys have a nice day! Long story short. I hop from opensuse tumbleweed to arch recently. I want to setup snapper so it work like on opensuse just to be safe. Even on opensuse the rolling release did kill my system few time. I run into this part on the arch wiki.

Note: If you are using the suggested Btrfs partition layout from archinstall then the @.snapshots subvolume will already be mounted to /.snapshots, and the snapper create-config command will fail [1]. To use the @.snapshots subvolume for Snapper backups, do the following:

Unmount the @.snapshots subvolume and delete the existing mountpoint.
Create the Snapper config.
Delete the subvolume created by Snapper.
Re-create the /.snapshots mount point and re-mount the @.snapshots subvolume.

I did installed arch via archinstall but I am not really experience with the btrfs files system nor mount or unmount stuff so as I expected I killed my system. I reinstalled arch and not sure how to setup snapper without pull my hair out again. Any help would be appreciate thank!

you are viewing a single comment's thread
view the rest of the comments
[โ€“] reklis@lemmy.world 2 points 1 month ago (3 children)
umount /.snapshots
rm -r /.snapshots
snapper -c root create-config /
mount /.snapshots
snapper -c root create --description "initial baseline"

You may also want to check out the snap-pac package I think that automatically takes snapshots every time you install something

[โ€“] Kiuyn@lemmy.ml 1 points 1 month ago

thank i will try right now

load more comments (2 replies)