4.2.3. cfgrestore

Description

Restore a configuration file in a deployed bundle to a particular revision.

Usage

bw cfgrestore PATH FILE REV (or NAME cfgrestore FILE REV)

  • PATH points to a deployed bundle (not needed when action is called using the deployed bundle's NAME)
  • FILE is the name of a configuration file inside that deployment.
  • REV is the revision to restore.

Ant Usage

<bw.cfgrestore path="${path}" config="${config}" revision="${revision}" />

Examples

# Restore revision 2 of server.xml for the current tomcat
tomcat cfgrestore server.xml 2
# Restore revision 4 of helloserver.properties
# for a specific deployment of the helloserver bundle
bw cfgrestore /local/dev/helloserver helloserver.properties 4

Notes

  • Use this command with care as it replaces the current configuration file with an earlier revision from the configuration archive.
  • You can use the cfgview commmand to view a revision before deciding to restore it.