If SCP is disabled tar cz $FILES | ssh $USER@$HOST "tar -C $DEST_DIR xz" ssh $USER@$HOST "tar cz -C $SRC_DIR $FILES" | tar xz -C $DEST_DIR