# Replacing a Resource With Local History

To replace an unmanaged Workbench resource with a state in the local history:

1. In one of the navigation views, select the resource that you want to replace with a local history state.
2. From the resources pop-up menu, select Replace with > Local History. The Replace from Local History page opens.
3. Select a state from the Local History list. The Text Compare editor opens.
4. Click the Select Next Change and Select Previous Change buttons to browse through the changes made between states in the local history and the Workbench resource.
5. Select the state you want to replace, and click Replace.

To replace a Workbench resource managed by VCS with a state in the local history:

1. In one of the navigation views, select the resource that you want to replace with a local history state.
2. From the resources pop-up menu, select Replace with > History.... The History View opens.
3. Put the History View into Local Revision mode by clicking on the Local Revision toolbar button. This will display only Local History revisions in the History View.
4. Select the revision you want to replace the current revision and select Get Contents from the context menu.

Tip: You can configure your general preferences to specify how many days to keep files, or how many entries per file you want to keep, or the maximum file size for files to be kept with the General > Workspace > Local History preference page.

### Related Concepts

Local history
Resources

### Related Tasks

Comparing resources with the local history
Restoring deleted resources from the local history
Setting local history preferences