Populating Profiles with photos from another Profiles database
You can use IBM® Tivoli® Directory Integrator assembly-line commands to transfer photos of your users from one Profiles database to another.
You can use the dump_photos_to_files and load_photos_from_file assembly-line commands to populate the Profiles database with user photos. This is useful when you're upgrading Connections, or when you're moving the Profiles database. Use dump_photos_to_files to save the photos from the existing database to disk. Then, after the new database has been repopulated from your LDAP server, use load_photos_from_file to load the photo files into the new database.
- To populate a new Profiles database with photos:
Use the dump_photos_to_files command to store the photos from the existing Profiles database on disk.
The following table shows the properties that are used by this command, and their default values. These properties are in the profiles_tdi.properties file.
Property Description dump_photos_directory The directory where the extracted photo files are stored. The default value is ./dump_photos, which is a sub-directory of the TDI solution directory.
| |dump_photos_file|The file that contains the user and photo information. The default value is collect_photos.in, and it's in the TDI solution directory.
Each entry consists of three lines:
- The absolute file path and file name of the photo.
- The uid of the user, corresponding to PROF\_UID in the Profiles database.
- A single period.
Use the load_photos_from_files command to populate the new Profiles database with the photos that you saved in the previous step.
The following property in profiles_tdi.properties is used by this command:
Property Description load_photos_simple_file The file that contains the user and photo information. The default value is collect_photos.in.
You can edit this file before running the load_photos_from _files command. For example, you might want to load only a subset of photos into the Profiles database.
**Note:** Make sure that new Profiles database is populated with users before running the load\_photos\_from\_files command.
This sample collect_photos.in file contains three entries.
The characters following
uid: correspond to the PROF_UID in the Profiles database. Also, note the required period separator between each entry.
Parent topic:Adding supplemental content to Profiles