nbdcopy [-p] -|FILE|DEVICE NBD-URI nbdcopy [-p] NBD-URI -|FILE|DEVICE nbdcopy --help nbdcopy --version
nbdcopy nbd://example.com local.img nbdcopy nbd://example.com - | file - nbdcopy -p /dev/sdX nbd://example.com cat disk1 disk2 | nbdcopy - "nbd+unix:///?socket=/tmp/unixsock"
The local file can be a file, a block device (eg. "/dev/cdrom"), or "-" which means stream in from stdin or stream out to stdout. The NBD server is specified using an NBD URI (like "nbd://localhost"). The NBD server can be local or remote, and encryption can be used if libnbd was built with encryption support.
For more complex copying operations including converting between disk formats use "qemu-img convert", see qemu-img(1).
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA