This question already has an answer here:
I am trying to make a spaceship that can go up and down basically. When it goes up, I want the command block to have a command. That's where I ran into a problem; I couldn't find a way to move a command block while keeping the command it has in it. I know how to use command blocks to make blocks appear, but is there anyway to make a command block with a command in it with another command block?
I basically just want to make a command block with a command in it by using /setblock in another command block (if its possible)
side question: when they release the /clone command in the next update, will that work similar to this?