mc pipe

Stream standard input (STDIN) to an object.

Syntax

CLI
mc pipe [FLAGS] [TARGET]

FLAGS:
  --json                             enable JSON lines formatted output
  --debug                            enable debug output
  --insecure                         disable SSL certificate verification
  --help, -h                         show help

Parameters

Parameter Description
TARGET The alias of a configured HPE Ezmeral Object Store deployment to which the target is copied. This parameter is mandatory.
json Enable JSON formatted output.
debug Enable output for debugging.
insecure Disable SSL verification.
help Show this help.

Examples

  1. Write contents of STDIN to an object named notes.txt that is in a bucket named northamerica in the Object Store deployment with alias salesobject:
    CLI
    /opt/mapr/bin/mc pipe salesobject/northamerica/notes.txt
  2. Stream MySQL database dump to the file accounts.sql that is in a bucket named northamerica in the Object Store deployment with alias salesobject.
    CLI
    mysqldump -u root -p ******* accountsdb | /opt/mapr/bin/mc pipe salesobject/northamerica/accounts.sql
  3. Copy an iso file deb.iso from the local filesystem to a bucket named northamerica in the Object Store deployment with alias engr.
    CLI
    cat deb.iso | /opt/mapr/bin/mc pipe engr/northaerica/deb.iso