ContentsIndexPreviousNext

Rebuilding Files

The "-rebuild" option is used to rebuild or recreate an indexed file. The command is:

vutil  -rebuild  [ --slow ]  [ -l ]  [ -t tmpfile ]
[ -b # ]  [ -234 ]  [ -ac ]  [ +ce ]  [ -k keynum ]
[ -d dir ]  [ -f factor ] [ -s spoolfile [-r] [-m size] ]
[ -g ext_factor ]  [-q]  [ files ]

Each file listed on the command line is rebuilt. If no files are listed, then the standard input is read for the list.

When a file is rebuilt, a temporary file is created and each record from the original file is written to it. The temporary file has all of the characteristics of the original except that deleted records are skipped. The command line arguments are:

-a Automatic replacement of original file with new one.
-b # Blocking Factor; # may be either 1 or 2.
-c Remove record compression.
+c Add record compression.
-d dir Place rebuilt file in named directory.
+e Add record encryption.
-f factor Compression factor.
-g ext_factor Extension factor in blocks.
-k keynum Rebuild in key order; 0 means primary key, 1 means first alternate, and so forth.
-l Apply write lock.
-m size Size of spool media in number of 1024 byte records.
-q Exit if user interaction is required.
-r Recover interrupted build.
-s spoolfile Use spooling.
-slow Open the file for "mass update" instead of for "bulk addition".
-t tmpfile Specify name of the temporary file used during rebuild. Do not specify a directory, only a file name.
-2 Rebuild in Vision Version 2 format.
-3 Rebuild in Vision Version 3 format.
-4 Rebuild in Vision Version 4 format.