mirror of
https://github.com/bashclub/bashclub-zfs-push-pull.git
synced 2024-11-07 21:01:58 +01:00
Update 02pull
Corrected Spelling Default SSH Port 22
This commit is contained in:
parent
c51ce58bef
commit
c8f19ac978
4
02pull
4
02pull
@ -2,8 +2,8 @@
|
|||||||
SCRIPTPATH='/root'
|
SCRIPTPATH='/root'
|
||||||
SOURCEHOST='host.dom.tld'
|
SOURCEHOST='host.dom.tld'
|
||||||
SOURCEPATH='rpool/data'
|
SOURCEPATH='rpool/data'
|
||||||
DESTPATH='rpool/data/Replca'
|
DESTPATH='rpool/data/Replica'
|
||||||
PORT='10022'
|
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); do echo ${src##*/}; done') #determines Source Datasets without 'alt' in Name
|
||||||
echo ''
|
echo ''
|
||||||
echo Repliziere von $SOURCEHOST $SOURCEALL
|
echo Repliziere von $SOURCEHOST $SOURCEALL
|
||||||
|
Loading…
Reference in New Issue
Block a user