dfg
This commit is contained in:
parent
ca2660c2d9
commit
c6529ec89d
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ echo "-----------------------"
|
|||
echo "Source: {{ item.src }}"
|
||||
echo "Destination: {{ item.dest.split(':') | last }}"
|
||||
{# Mount check source #}
|
||||
{# der führende / muss beim Dataset entfernt werden, sonst melden das Kommando immer "mounted" zurück #}
|
||||
if [[ "$(/usr/sbin/zfs get mounted -H {{ item.src | regex_replace('^/', '') }} | cut -f3)" = "yes" ]] ; then
|
||||
{# Mount check destination #}
|
||||
if [[ "$(ssh -i /etc/rsync_mirror/.ssh/id_rsync_mirror -o StrictHostKeyChecking=no {{ item.dest.split(':') | first }} /usr/sbin/zfs get mounted -H {{ item.dest.split(':') | last | regex_replace('^/', '') }} | cut -f3)" = "yes" ]] ; then
|
||||
|
|
Loading…
Reference in a new issue