Creating actions based on local location/rotation/scale of an object
just animate the delta transform instead of the location, then you can link the animation data to the other cube. This works.

if you need a step by step explanation for this, just let me know.