this post was submitted on 03 Dec 2023
264 points (97.8% liked)

linuxmemes

20762 readers
1699 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 19 points 9 months ago (2 children)

That's only to backup/rollback the root though, right? If one's looking to backup - say - their home dir, they can just recreate the home as a subvolume without reinstalling the system. Or am I mistaken?

[–] [email protected] 4 points 9 months ago (1 children)

You can definitely do this with a few commands.

[–] [email protected] 4 points 9 months ago* (last edited 9 months ago) (1 children)

https://github.com/raldone01/config_fish/blob/main/tdcff_functions/btrfs_folder_to_subvol.fish

Because I often forget to do it I wrote a little helper script.

This file can be run or sourced and only depends on btrfs-progs and fish.

[–] [email protected] 3 points 9 months ago

Awww man, thanks ☺️.

Good thing I love fiish, it's my default shell 😉.

[–] [email protected] 2 points 9 months ago

Yes, you can just set it to mount a, let's say @home, subvolume to /home and that's that, done.