Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a little help... #1

Open
OswaldKolle1977 opened this issue Feb 29, 2024 · 0 comments
Open

Need a little help... #1

OswaldKolle1977 opened this issue Feb 29, 2024 · 0 comments

Comments

@OswaldKolle1977
Copy link

What I did:
Configured the /etc/bashclub/zsync.conf file
I added a custom tag "bashclub:zsync" to the volume ("zfs set bashclub:zsync=subvols rpool/data/vm-100-disk-1").

Now the problem is - it will not be shown in the "include_list"!
running this
zfs get -H -o name,value,source -t filesystem,volume bashclub:zsync
gives me: rpool/data/vm-100-disk-0 subvols local

So the following function will never take this entry into the include list...
for zvol in $($ssh $sshcipher $sshport $source "zfs get -H -o name,value,source -t filesystem,volume $tag"); do name=$(echo $zvol | $cut -f1) if [[ "$(echo $zvol | $cut -f2)" == "subvols" ]] && [[ $(echo $zvol | $grep -vE "local|received") ]]; then
The grep -vE "local|received" will exclude it...

What am I doing wrong?!

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

No branches or pull requests

1 participant