21.36. Uploading and Downloading Storage Volumes

The vol-upload --pool pool-or-uuid --offset bytes --length bytes vol-name-or-key-or-path local-file command uploads the contents of specified local-file to a storage volume. The command requires --pool pool-or-uuid, which is the name or UUID of the storage pool the volume is in. It also requires vol-name-or-key-or-path which is the name or key or path of the volume to upload. The --offset argument is the position in the storage volume at which to start writing the data. --length length dictates an upper limit for the amount of data to be uploaded. An error will occur if the local-file is greater than the specified --length.
The vol-download --pool pool-or-uuid --offset bytes -length bytes vol-name-or-key-or-path local-file command downloads the contents of local-file from a storage volume.
The command requires a --pool pool-or-uuid option, where pool-or-uuid is the name or UUID of the storage pool that the volume is in. It also requires vol-name-or-key-or-path, which is the name or key or path of the volume to download. Using the argument --offset dictates the position in the storage volume at which to start reading the data. --length length dictates an upper limit for the amount of data to be downloaded.