I have multiple projects where just the root dir changes:
I had an IntelliJ project for proj1. I copied all the files in a new folder, changed the path from c:/cygwin/proj1 to c:/cygwin/proj2 in all files, and changed the name of the project files (proj1.ipr to proj2.ipr and so on).
Is this safe? It seems to work.