Copying the Jenkins jobs directory from the old server to the new one is a good idea. We can easily migrate a task from one Jenkins installation to another by simply copying the job directory.
We may also create a duplicate of an existing Jenkins task by cloning the job directory and renaming it.
Another option is to rename an existing task by changing the directory name. If you rename a job, any other job that attempts to contact the renamed job will need to be renamed as well.