Revision 8ca22fef

b/lib/cli.py
2707 2707
    src_path = None
2708 2708
    no_install = opts.no_install
2709 2709
    identify_defaults = False
2710
    compress = constants.IEC_NONE
2710 2711
  elif mode == constants.INSTANCE_IMPORT:
2711 2712
    start = False
2712 2713
    os_type = None
......
2715 2716
    src_path = opts.src_dir
2716 2717
    no_install = None
2717 2718
    identify_defaults = opts.identify_defaults
2719
    compress = opts.compress
2718 2720
  else:
2719 2721
    raise errors.ProgrammerError("Invalid creation mode %s" % mode)
2720 2722

  
......
2740 2742
                                force_variant=force_variant,
2741 2743
                                src_node=src_node,
2742 2744
                                src_path=src_path,
2745
                                compress=compress,
2743 2746
                                tags=tags,
2744 2747
                                no_install=no_install,
2745 2748
                                identify_defaults=identify_defaults,
b/lib/client/gnt_backup.py
133 133
  IDENTIFY_DEFAULTS_OPT,
134 134
  SRC_DIR_OPT,
135 135
  SRC_NODE_OPT,
136
  COMPRESS_OPT,
136 137
  IGNORE_IPOLICY_OPT,
137 138
  ]
138 139

  
b/man/gnt-backup.rst
34 34
``@CUSTOM_EXPORT_DIR@/$instance`` directory on the target node.
35 35

  
36 36
The ``--compress`` option is used to specify which compression mode
37
is used during the export. Valid values are 'none' (the default) and
38
'gzip'.
37
is used for moves during the export. Valid values are 'none'
38
(the default) and 'gzip'.
39 39

  
40 40
The ``--shutdown-timeout`` is used to specify how much time to wait
41 41
before forcing the shutdown (xm destroy in xen, killing the kvm
......
72 72

  
73 73
| **import**
74 74
| {-n *node[:secondary-node]* | \--iallocator *name*}
75
| [\--compress=*compression-mode*]
75 76
| [\--disk *N*:size=*VAL* [,vg=*VG*], [,mode=*ro|rw*]...]
76 77
| [\--net *N* [:options...] | \--no-nics]
77 78
| [-B *BEPARAMS*]
......
189 190
    get a directory (as its own name) under this path, and each disk
190 191
    is stored as individual files in this (instance-specific) directory.
191 192

  
192

  
193 193
The ``--iallocator`` option specifies the instance allocator plugin
194 194
to use. If you pass in this option the allocator will select nodes
195 195
for this instance automatically, so you don't need to pass them
......
199 199
The optional second value of the ``--node`` is used for the drbd
200 200
template and specifies the remote node.
201 201

  
202
The ``--compress`` option is used to specify which compression mode
203
is used for moves during the import. Valid values are 'none'
204
(the default) and 'gzip'.
205

  
202 206
The ``--src-dir`` option allows importing instances from a directory
203 207
below ``@CUSTOM_EXPORT_DIR@``.
204 208

  

Also available in: Unified diff