Update 02pull

Corrected Spelling
Default SSH Port 22
This commit is contained in:
cpzengel 2022-02-04 15:37:24 +01:00 committed by GitHub
parent c51ce58bef
commit c8f19ac978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
02pull
View File

@ -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