Skip to main content
Loading

Options for ASMT

The help option (-h) for asmt displays this output:

usage: asmt [-a] [-b] [-c] [-h] [-i <instance>] [-n <name>[,<name>...]]
[-p <pathdir>] [-r] [-t <threads>] [-v] [-z]

-a analyze (advisory - goes with '-b' or '-r')
-b back up (operation or advisory with '-a')
-c compare crc32 values of segments and segment files
-h help
-i filter by instance (default is instance 0)
-n filter by namespace name (default is all namespaces)
-p path of directory (mandatory)
-r restore (operation or advisory with '-a')
-t maximum number of threads for I/O
-v verbose output
-z compress files on backup
OptionDescription
-aPre-run analyze whether an operation can be performed.
-bBacks up the indexes from shared memory to the file system. Can be combined with -a
-cComputes a standard 32-bit cyclic redundancy check (CRC-32) to ensure that the contents of the index were not corrupted while being backed up or restored. Without the -z option, computing the CRC-32 may be computationally expensive. With the -z option there is no cost as the compression would include computing the CRC.
-hShows information about how to use ASMT.
-iSelects a particular Aerospike Database instance (i.e., cluster node) if multiple are running on the same server (0, 1, ...). The default instance is 0.
-nSelects a particular namespace. Example: -n namespace1. If no value is specified, all namespaces for the given instance are backed up or restored. You can specify multiple namespaces with a comma-separated list. Example: -n namespace1,namespace2,namespace3.
-pSpecifies the path to the index backup directory
-rRestores the indexes from the file system to shared memory. Can be combined with -a
-tSpecifies the maximum number of I/O threads to use for backing up or restoring. Typically, ASMT creates one I/O thread per CPU core, but you can force it to use fewer threads. Increasing the value to an integer greater than the number of CPU cores on the current system has no effect.
-vSpecifies that ASMT should produce verbose output. This option is recommended.
-zCompresses the index back-up file. Compression can result in files that are 15-30% smaller and quicker to write, at the cost of a small amount of computation. When you restore a compressed index, you do not need to specify this option.