Skip to content

Conversation

@sytone
Copy link

@sytone sytone commented Jan 8, 2022

Hit an issue where when parsing the snapper output there was whitespace after the drive meaning it was never matched against. This can be seen using the following command. Adding the additional script to trim the drive resolves the issue and the configurations are now found.

$:~$ snapper -c mergerfsdisk4 get-config | sed -e '/^SUBVOLUME /!d' -e 's/^SUBVOLUME[ ]*| //' -e 's/\s+//g' | tr " " "*" | tr "\t" "&"
/mnt/disk4**********

Hit an issue where when parsing the snapper output there was whitespace after the drive meaning it was never matched against. This can be seen using the following command. Adding the additional script to trim the drive resolves the issue and the configurations are now found.

```
$:~$ snapper -c mergerfsdisk4 get-config | sed -e '/^SUBVOLUME /!d' -e 's/^SUBVOLUME[ ]*| //' -e 's/\s+//g' | tr " " "*" | tr "\t" "&"
/mnt/disk4**********
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant