mirror of
https://github.com/bashclub/bashclub-zfs-push-pull.git
synced 2024-11-07 21:01:58 +01:00
Controlscript for Bashclub ZFS
Using that Script collects all Datasets/ZVOLs from a partent Daset and creates individual Jobs instead of a faulty recursive replication
This commit is contained in:
parent
c8f19ac978
commit
e1cb6d35ec
2
02pull
2
02pull
@ -4,7 +4,7 @@ SOURCEHOST='host.dom.tld'
|
|||||||
SOURCEPATH='rpool/data'
|
SOURCEPATH='rpool/data'
|
||||||
DESTPATH='rpool/data/Replica'
|
DESTPATH='rpool/data/Replica'
|
||||||
PORT='22'
|
PORT='22'
|
||||||
SOURCEALL=$(ssh -p$PORT root@$SOURCEHOST 'for src in $(zfs list -H -o name |grep '"$SOURCEPATH"'/|grep -v alt); do echo ${src##*/}; done') #determines Source Datasets without 'alt' in Name
|
SOURCEALL=$(ssh -p$PORT root@$SOURCEHOST 'for src in $(zfs list -H -o name |grep '"$SOURCEPATH"'/|grep -v alt|grep -v state|grep -v disk-9); do echo ${src##*/}; done') #determines Source Datasets without 'alt, state and disk-9' in Name - Those are typlically not replicated
|
||||||
echo ''
|
echo ''
|
||||||
echo Repliziere von $SOURCEHOST $SOURCEALL
|
echo Repliziere von $SOURCEHOST $SOURCEALL
|
||||||
echo ''
|
echo ''
|
||||||
|
Loading…
Reference in New Issue
Block a user