Yes, it is illegal
unless you already own the discs for the second system, and then it IS LEGAL. They should contain at least all the songs you imported on your first system.
Then, all you would need to do is import any additional songs from discs you have with your second system that are not on your first system.