Ive done this before from a Windows Server to a Linux Server. It's a little convoluted, but it works... mostly.
Its honestly kind of a pain and may not be worth the effort. But if you do do it, Good luck and I hope it works smoothly for you.
This might help a little: Strategy for migrating to new server