Is it possible to copy all the channel pages from one Channel to another channel with groovy script without losing any data ( like paths, components ..ect)

Hi All,

We have a requirement to copy all the pages from one channel to another channel using groovy script in CMS
we are using cms13 version, we don’t want to lost any data.

Please let me know if we have any way to do this, thanks in advance.

thanks & regards
Ganesh