rdm-vacuum

Database Vacuum Utility

Synopsis

rdm-vacuum [OPTION]… db-uri

Description

rdm-vacuum is a command-line utility that vacuums data in the specified RaimaDB database for reducing the amount of disk spaced used. The typical usage would be to vacuum the database in to its smallest disk footprint, for example:

$> rdm-vacuum --all BOOKSHOP

rdm-vacuum is a command-line utility that vacuums data in the specified RaimaDB database for the purpose of reducing the amount of disk spaced used. Specify one of the options '--all', '--schema', or '--table' to do vacuuming. One pack file will be vacuumed for each invocation of this tool. Specifying '--new-pack' or without any of the previous options will honor those options without doing any explicit vacuuming.

Options

Short options can be combined into one string starting with a single '-'. Mandatory arguments to long options are mandatory for short options too. Long option arguments can also be specified in a separate argument.

-h, --help Display this usage information
--version Display the version information
-q, --quiet Quiet mode. No information will be displayed
--key=key Specify the encryption key for the database ([algorithm:]passcode). The valid algorithms are xor, aes128, aes192 and aes256. The AES algorithms are only available for packages that have strong encryption support. If an algorithm is not specified, the default is aes128 for strong encryption packages and xor otherwise.
--docroot=path Document root to use instead of the current working directory. The environment variable RDM_DOCROOT can also be used. (See Document Root (docroot))
-a, --all Vacuum all the pack files. This option implies '--pack=<last-pack-ID>, '--new-pack' and '--sync'.
-p, --pack=ID Vacuum pack file ID and older
-n, --new-pack Force creation of a new pack file prior to vacuuming
-S, --sync Sync the pack file after vacuuming
-s, --schema Vacuum the schema system drawers (incompatible with first, best, and auto)
-t, --table=table_name Vacuum only the specified table. Use this option more than once to vacuum multiple tables. (incompatible with first, best, and auto
--db-size=size Maximum size of all pack files (in bytes)
--pack-file-size=size Maximum size of a pack file (in bytes)
-r, --restore Restore original database settings after vacuuming
--vacuum-percentage=percentage Percentage of in use in a pack file to vacuum
--vacuum-chunk-size=size The number of bytes to write to a pack in one vacuum cycle.
--log-level=level Set the log level ('--log-level=all', '--log-level=error', '--log-level=warning', '--log-level=info', '--log-level=mesg', or a number (5-99)) - the default is '99')
--err-level=level Set the error level (all, error, warning, info, mesg,or a number (5-99)) - the default is info)
--use-ssl Use SSL for remote connections
db-uri An RDM database name or URI. See Database Identifier (db-uri) for more information.

Comments

See Database Vacuuming for more information.

This utility is uses the rdm_dbVacuum() function to vacuum the unused space out of a database image.