Commit 6fce8038 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

archive-copy-unpack for remote copying

parent 528be92d
......@@ -45,4 +45,7 @@ PR = "${@version_update('${VPATH}','${VFILE}',2)}"
SRCREV = "${AUTOREV}"
#always start from compile
#do_compile[nostamp]="1"
FILESEXTRAPATHS_append := "${VPATH}:"
......@@ -3,9 +3,12 @@
IDENTITY_FILE ?= "-i ~/.ssh/id_rsa"
do_target_scp () {
SOURCE_PATH="${D}/*"
#echo "scp ${IDENTITY_FILE} -pr ${SOURCE_PATH} ${REMOTE_USER}@${REMOTE_IP}:/"
scp ${IDENTITY_FILE} -pr ${SOURCE_PATH} ${REMOTE_USER}@${REMOTE_IP}:/
#Without next echo - no trace of the scp in the log!
tar -czvf ${WORKDIR}/image.tar.gz -C ${WORKDIR}/image .
echo scp ${IDENTITY_FILE} -p ${WORKDIR}/image.tar.gz ${REMOTE_USER}@${REMOTE_IP}:/
scp ${IDENTITY_FILE} -p ${WORKDIR}/image.tar.gz ${REMOTE_USER}@${REMOTE_IP}:/
echo ssh ${IDENTITY_FILE} ${REMOTE_USER}@${REMOTE_IP} ${SSH_COMMAND}
ssh ${IDENTITY_FILE} ${REMOTE_USER}@${REMOTE_IP} ${SSH_COMMAND}
}
addtask do_target_scp after do_install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment