共用方式為


Tip Of The Day: Rebasing Repositories

When you copy a database from another machine, the repository folders would still be pointing to the machine that you copied it from. You may want  to change the path of the repository folders to point to the repository folders of your machine. Changing the path of the repositories is commonly known as rebasing the database.

Consider the following scenario:

The user copied the database from machine MACHINE_SRC to machine MACHINE_DEST. However, he/she forgot to rebase the repositories on MACHINE_DEST.

The user then adds a component to the database on MACHINE_DEST and wants its files to be copied to one of the repository folders.

These files may get copied to the repository folder on MACHINE_SRC if the user has write permissions on the repository path in MACHINE_SRC. This may not be intended.

So, it is important to ensure that your database is rebased after copying it from another location. To rebase repositories, perform the following steps

1. Open Component Database Manager

2. Navigate to the Repository tab.

3. In this tab, select a repository

4. Click the Change Location button

5. In the ‘Change Repository Location’ dialog that appears, enter the new location.

Example. If the original location is

\\MACHINE_SRC\Repositories\{484C9D34-846E-40E2-A2E6-FF2771A303D5}

You could change it to

\\MACHINE_DEST\Repositories\{484C9D34-846E-40E2-A2E6-FF2771A303D5}

You can uncheck the checkbox Move repository files to the new location if you already have the repository on the destination machine. Un-checking the checkbox will not copy over the repository files from MACHINE_SRC\Repositories\{484C9D34-846E-40E2-A2E6-FF2771A303D5} to MACHINE_DEST\Repositories\{484C9D34-846E-40E2-A2E6-FF2771A303D5}

This is as shown below

clip_image002

-Anup

Technorati Tags: XPe

Comments