 +exec_and_log "chmod ug+w,o-rwx $DST_PATH"
  
 diff --git a/src/tm_mad/ssh/tm_clone.sh b/src/tm_mad/ssh/tm_clone.sh
-index 71800d1..eaa5f93 100755
+index 71800d1..c7333c5 100755
 --- a/src/tm_mad/ssh/tm_clone.sh
 +++ b/src/tm_mad/ssh/tm_clone.sh
-@@ -43,19 +43,51 @@ log "Creating directory $DST_DIR"
+@@ -33,6 +33,8 @@ DST_PATH=`arg_path $DST`
+ SRC_HOST=`arg_host $SRC`
+ DST_HOST=`arg_host $DST`
+ 
++VM_DIR=`dirname $SRC_PATH`
++VM_ID=`basename $VM_DIR`
+ 
+ log_debug "$1 $2"
+ log_debug "DST: $DST_PATH"
+@@ -43,19 +45,52 @@ log "Creating directory $DST_DIR"
  exec_and_log "$SSH $DST_HOST mkdir -p $DST_DIR" \
      "Error creating directory $DST_DIR"
  

+    pdisk:*)
+        log "Persistent disk handling $SRC $DST"
+        exec_and_log "$SSH -t -t $DST_HOST /usr/sbin/attach-persistent-disk.sh $SRC $DST_PATH" \
+            "Failed to create persistent disk $DST_PATH"
+        ;;
+
+    *)

+exec_and_log "$SSH $DST_HOST chmod ug+w,o-rwx $DST_PATH"
 
diff --git a/src/tm_mad/nfs/tm_clone.sh b/src/tm_mad/nfs/tm_clone.sh
index 62c33fc..9d67c40 100755
--- a/src/tm_mad/nfs/tm_clone.sh
+++ b/src/tm_mad/nfs/tm_clone.sh
@@ -32,30 +32,69 @@ get_vmdir
 SRC_PATH=`arg_path $SRC`
 DST_PATH=`arg_path $DST`
 
+DST_HOST=`arg_host $DST`
+DST_DIR=`dirname $DST_PATH`
+
+VM_DIR=`dirname $SRC_PATH`
+VM_ID=`basename $VM_DIR`
+
 fix_paths
 
 log_debug "$1 $2"
 log_debug "DST: $DST_PATH"
 
-DST_DIR=`dirname $DST_PATH`
 
 log "Creating directory $DST_DIR"
 exec_and_log "mkdir -p $DST_DIR"
