Restore shares from old server to new one

Nextcloud version (eg, 12.0.5):
Operating system and version (Freenas 11.1):
Apache or nginx version (nginx/1.12.2):
PHP version (PHP 7.0.27):

The issue you are facing:
I created a server in an new jail to replace my old one (warden jail to iocage jail). I’ve recreated all my external local storage’s. Is there a way to transfer the shares from the old server to the new so people that click on an old link will still get the same file as before?

Check your database’s oc_share table.