Skip to main content

Obsolete Utility: Upgrade File Formats

This utility is included for backward compatibility. The utility can upgrade the format of files created in AMPS version 3.0.3 to 4.3.2 to the formats used in AMPS 5.0 and later versions.

Files created or updated by AMPS 5.0 can be successfully used in all subsequent versions of AMPS without modification. This utility is unnecessary in those cases, and should not be used for files that have already been used with 5.0 or later versions of AMPS.

tip

For upgrading from versions 5.0.0.0 or later to this release of AMPS, amps_upgrade is not necessary.

This utility should not be used for files that have been created or modified by AMPS version 5.0.0.0 or later instances.

Options and Parameters

OptionDescription
--verbosePrint additional details on each operation to stdout.
--tracePrint the operations that amps_upgrade performs to stdout.
OptionDescription
--from=BASE

The root directory of the AMPS installation being migrated.

This is the directory in which you usually start the ampServer process. Any relative paths in the config file will be evaluated relative to this directory.

--config=CONFIGThe xml configuration file for the AMPS server being migrated.
--work-dir=WORK_DIRThe working directory from which the ampServer is invoked.
--tmp-dir=TMP_DIR

The temporary directory where upgrade files are written while the upgrade process is underway.

If this directory does not exist, it will be created. amps_upgrade will fail without changing any existing files if this directory already exists and contains files from a previous migration.

OptionDescription
--check-currentReturns true if the instance is the same version as the amps_migrate utility, with no upgrade needed.
--dry-run

Step through the entire upgrade process, printing activity, without making changes.

Returns false if errors are encountered or upgrade is impossible.

--upgradeUpgrade the instance, returning false if the upgrade is impossible or the upgrade process fails.
-h, --helpShow usage information and exit.
--versionShow the program's version number and exit.

Usage

tip

This utility should not be used for files that have been created or modified by AMPS version 5.0.0.0 or later instances.

Simply upgrade an AMPS instance that's executed in the /amps/server directory from another version to this version, storing temporary files in the /amps/tmp directory:

$ amps_upgrade --from=/amps --config=/amps/config.xml --work-dir=/amps/server --tmp-dir=/amps/tmp --upgrade

Try out a migration without actually committing the changes to your AMPS instance:

$ amps_upgrade --from=/amps --config=/amps/config.xml --work-dir=/amps/server --tmp-dir=/amps/tmp --dry-run

Check to see if your AMPS instance is current:

$ amps_upgrade --from=/amps --config=/amps/config.xml --work-dir=/amps/server --tmp-dir=/amps/tmp --check-current