That is known as a "floating" rotor. It should move, but not that much. Definitely not front to back. Either the rotor hub and/or the axle is worn. There is supposed to be a boot and clip on both sides to keep dirt out..
Go to any one of the online parts sellers and look at a diagram of the rear be, you'll see what you're missing.
I see no problem with running it as is.