deconstruct

vb deconstruct [OPTIONS] DESTINATION

Description

This command exports all artifacts of a given repository and writes all artifacts to the file system. The DESTINATION directory will be populated with subdirectories AA and files AA/BBBBBBBBB.., where AABBBBBBBBB.. is the 40+ character artifact ID, AA the first 2 characters. If -L|--prefixlength is given, the length (default 2) of the directory prefix can be set to 0,1,..,9 characters.

Options

-R, --repository REPO

Deconstruct given REPOSITORY

-K, --keep-rid1

Save the filename of the artifact with RID=1 to the file .rid1 in the DESTINATION directory

-L, --prefixlength N

Set the length of the names of the DESTINATION subdirectories to N

--private

Include private artifacts

-P, --keep-private

Save the list of private artifacts to the file .private in the DESTINATION directory (implies the --private option)

See Also

See also

reconstruct

Examples

  • Deconstruct into a target directory

$ vb deconstruct out_default
0 (0%)...
  25.0% complete...
  50.0% complete...
  75.0% complete...
  100.0% complete...
$ vb sys ls out_default
72  89  b3  bb
  • Deconstruct using a longer prefix length

$ vb deconstruct -L 8 out_prefix3
0 (0%)...
  25.0% complete...
  50.0% complete...
  75.0% complete...
  100.0% complete...
$ vb sys ls out_prefix3
72489fe5  89b9ff85  b314e284  bb42f371