Paul Barrett wrote: ↑Thu Apr 26, 2018 1:54 am
The problem with using the method you suggest is that I have about 1600 media files to attach. Martin Mosley uses Updraft Plus to replicate his site so we know this should work.
I was under the impression the biggest problem was restoring media links when moving from a host to a NAS. Regardless of whether you clone or copy, all the media files must be present in the correct folders on the NAS. Linking the 1600 media files is not an issue once they are on your NAS, unless you plan to restore them manually.
The TNG GEDCOM import method you tried earlier is typically used when you have media links in a program on a PC that you want to add to a TNG database. In this case the links are stored differently in GEDCOM files so TNG provides a way to remap the links but remapping can get complicated and may require multiple edits to get everything in the correct place. The cloning method may work in some cases but differences in configurations between your NAS and the hosted site can cause problems.
Before reading further, if you CANNOT copy the TNG media folders and files to your NAS then reading the rest of this post will not help.
If you can copy the media to your TNG folder, recreating links is much simpler and easier because the links exist on your hosted site. Simply use the TNG backup/restore utility. This utility is available in the admin control panel. Darrin has done an excellent job making TNG very easy to use in this regard. I have used it many times and have not lost one piece of information. Login to TNG on your host and select Utilities from the Admin Control Panel. Select the
Select All button and then
Back up from the
With selected pull down option and then select
Go. It may take a couple of minutes to run if your database is large.
Copy all the TNG backup files from your host to the TNG backup folder on your NAS. Once the files are on your NAS, TNG's backup/restore utility can recreate all the media links from your host database provided the tree ID and file prefixes match those on your NAS. If the tree ID and file prefixes do not match, you will need to manually change the file prefixes which is a pain because there are about 33 files. Unfortunately Windows REName does not support the underscore special character and Synology doesn't support renaming multiple files at the same time. Changing the tree ID is more difficult but I can post instructions to change them if needed.
Once the files are on your NAS and the tree ID and prefixes match, login to TNG on your NAS and select Utilities from the Admin Control Panel. Select the
Select All button and then
Restore from the
With selected pull down option and then select
Go. It may take a couple of minutes to run if your database is large.
When restore completes, media links on your host are now on your NAS.
If you want to confirm custom media tables were restored and point to the correct folder, login to the TNG and open the admin control panel. Select an existing media type then select the
Edit button. Then select the
Make Folder button. If the folder exists you will get the following message:
Click save when finished. Goto TNG Admin -> Media and select any collection, containing media, from the drop down menu and select the search button. The screen should populate with all the media in that collection and show the links. If the media appears but links do not, make sure the tree ID is correct. Media assigned to one tree cannot be linked to people in a different tree.