snapraid-btrfs
snapraid-btrfs copied to clipboard
Recent snapper version might have broken snapraid-btrfs
I updated my system last week. Now snapraid-btrfs can't find snapper configs for data drives
I have a PR in to fix this, but it's an easy patch. Change line 690 from
sed -e '/^SUBVOLUME /!d' -e 's/^SUBVOLUME[ ]*| //')"
to
sed -e '/^SUBVOLUME /!d' -e 's/^SUBVOLUME[ ]*[|│] //')"
I was having the same problem after updating to snapper 0.11.0, and can confirm that the above patch from @D34DC3N73R fixed it. Now snapraid-btrfs ls prints my configs.
And here I thought it was me...
Setting up a new snapraid-btrfs snapper config and I could not get it to work, whatever I tried. I kept getting snapraid-btrfs: No snapper configs found for any data drives in /etc/snapraid.conf. I've read so many tutorials and finally checked this issues page and this PR fixed the issue :)
While setting up a new config wasted a lot of hours troubleshooting, finally stumbled upon this post. Getting same error as @aodtcr .
Pulled new version from fork of @D34DC3N73R .
Unfortunately this does not work on my system either. When openening the file in vi, I see that the character after the first pipe character is not recognized. It is not a normal pipe character I think but I don't know the name of it and have not seen it before.
sed -e '/^SUBVOLUME /!d' -e 's/^SUBVOLUME[ ]*[|**│**] //')"
Possibly related to locale settings?
Is there another way to achieve the same result?
It's a "light vertical box drawing character" as outlined in PR #34 That sed command should match either the pipe character OR the vertical box drawing character since it looks like snapper 0.11.0 switched to the vertical box drawing character. Which version of snapper are you using? Were the extra asterisks added by you or is that how it actually looks in the command?
Check out the PR and you can see commands to test the output on your system.
Thanks for your reply.
I installed snapper from Debian Bookworm repo, which is not the latest. I should have checked this.
When installing from the snapper repo, latest version, it seems to work.