Restore a configuration file in a deployed bundle to a particular revision.
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.
<bw.cfgrestore path="${path}" config="${config}" revision="${revision}" />
# 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
- 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.