Yes, that is better.
It also confused me initially at first installation of Btrfs-Assistant, I think.
Just a thought @dalto. Would it be possible to add functionality to btrfs-assistant to copy @home to another filesystem like snap-sync. Snap-sync still works but i donāt know if it is maintained.
It is something I would like to see added. There is an open issue for it already.
I would prefer to integrate something rather than build it myself but snap-sync is no longer maintained and snapsync hasnāt seen a release since 2018.
I have a branch where I was working on that. Since I do that all the time manually. Just couldnāt get the runCmd to work with the operation for some reason. Havenāt looked at it in a while though.
I didnāt find anything that you seemed to be referencing that actually worked. Help, please. Iām figuring this thing out for the first time.
[Unit]
Description=Monitors for new snapshots
[Path]
PathModified=/.snapshots
[Install]
WantedBy=multi-user.target
That is what I found, but when I change that file from the below to that, when I tried selecting Endeavour Snapshots at the Grub menu during boot, it didnāt even enter the Snapshot menu, just stayed at main boot page.
[Unit]
Description=Monitors for new snapshots
DefaultDependencies=no
Requires=\x2esnapshots.mount
After=\x2esnapshots.mount
BindsTo=\x2esnapshots.mount
[Path]
PathModified=/.snapshots
[Install]
WantedBy=\x2esnapshots.mount
After you did that, did you call sudo systemctl daemon-reload
and then sudo systemctl reenable --now grub-btrfs.path
.
Then you need to take a snapshot.
No, Iām a noob. I didnāt know I need to do that. Thanks. Worked.
Looking at earlier post, I see that installing snap-pac-grub avoids using the grub-btrfs.path systemd unit
Is one way better than the other, whether now or over time with other updates/changes/etc being made?
The path unit will fire when a snapshot is taken for any reason. snap-pac-grub
is a pacman hook that only runs during pacman operations.
IMO, neither is better/worse, just different.
I see⦠it seems I installed the ānormalā version, not this one.
I have 4 tabs only, canāt see the āBTRFS maintenanceā.
Would you like me to install the Git version?
OK⦠I will do it⦠just for you @dalto but tomorrow, (unless you see it is risky for a noob 9 days old like me)
That means you havenāt installed btrfsmaintenance
You donāt need the git version.
From OpenSUSE website I did
sudo snapper -c home create-config /home
Then according to @dalto I did:
yay btrfsmaintenance
WOW⦠now I have a /home profile to snapshot /home, and I have the āBTRFS maintenanceā tab.
I will keep playing with it.
I have āBTRFS maintenanceā as photo below⦠nothing selectedā¦
Is it OK (for now)? I wonder where are my /home snapshots!
There are things selected. You are running a btrfs balance weekly and a scrub monthly.
Lots of good info in the thread I created, but this had to do with this app and things related, so I figured Iād ask here.
Does it matter the order I install the following apps so that the auto configuration that snapper-support and whatever else does works correctly?
btrfs-assistant
btrfsmaintenance
snapper-support
grub-btrfs
snapper
snap-pac
I was going to install these apps, then make a snapshot so I could see the grub file get updated, then do:
sudo grub-mkconfig -o /boot/grub/grub.cfg
sudo systemctl edit --full grub-btrfs.path
Replace file contents with below
[Unit]
Description=Monitors for new snapshots
[Path]
PathModified=/.snapshots
[Install]
WantedBy=multi-user.target
sudo systemctl enable grub-btrfs.path
systemctl start grub-btrfs.path
I figured I would post all of this, maybe make easier for someone else, even though I know this all works, just wasnāt sure all of what snapper-support configured for me, especially since I ran it after configuring quite a bit myself in my test VM.
If you are going to do all that, donāt install snapper-support
.
There is the easy/automated path which is install btrfs-assistant
, btrfsmaintenance
and snapper-support
.
Or the manual path which is do all the things you mentioned.
snapper-support
installs and configures grub-btrfs
, snapper
and snap-pac
. It should also create and enable the unit file for you.
To answer your question it doesnāt matter the order they are installed.
Iāve been following this thread for a long time now, and it seems more and more interesting. Me being a lazy sod, would benefit greatly from this assistant.
After my impending move to a new appartment/flat, Iām going to try it my Arch laptop, witch I bork much more often than I do EndeavourOS (never happened). Tinkering might be the culprit⦠not me.