the main folder (the one that contains Metadata.db) is the Library name
Everything else is relative, so pointing to the proper place is all that is needed.
Pause sync while using Calibre. Stop Calibre WHEN syncing so ALL file sync

. I shadow my Library frequently using FreeFileSync.