Convoy Command Line Reference
December 8, 2018 ยท View on GitHub
Top level commands
COMMANDS:
daemon start convoy daemon
info information about convoy
create create a new volume: create [volume_name] [options]
delete delete a volume: delete <volume> [options]
mount mount a volume to an specific path: mount <volume> [options]
umount umount a volume: umount <volume> [options]
list list all managed volumes
inspect inspect a certain volume: inspect <volume>
snapshot snapshot related operations
backup backup related operations
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--socket, -s "/var/run/convoy/convoy.sock" Specify unix domain socket for communication between server and client
--debug, -d Enable debug level log with client or not
--verbose Verbose level output for client, for create volume/snapshot etc
--help, -h show help
--version, -v print the version
daemon
NAME:
daemon - start convoy daemon
USAGE:
command daemon [command options] [arguments...]
OPTIONS:
--debug Debug log, enabled by default
--log specific output log file, otherwise output to stdout by default
--root "/var/lib/convoy" specific root directory of convoy, if configure file exists, daemon specific options would be ignored
--drivers [--drivers option --drivers option] Drivers to be enabled, first driver in the list would be treated as default driver
--driver-opts [--driver-opts option --driver-opts option] options for driver
daemoncommand would start the Convoy daemon.The same Convoy binary would be used to start daemon as well as used as the client to communicate with daemon. In order to use Convoy, user need to setup and start the Convoy daemon first. Convoy daemon would run in the foreground by default. User can use various method e.g. init-script to start Convoy as background daemon.--rootoption would specify Convoy daemon's config root directory. After start Convoy on the host for the first time, it would contains all the information necessary for Convoy to start. After first time of start up,convoy daemonwould automatically load configuration from config root directory. User don't need to specify same configurations anymore.--driversand--driver-optscan be specified multiple times.--driverswould be the name of Convoy Driver, and--driver-optswould be the options for initialize the certain driver. Seedevicemapper,vfs,ebsfor driver option details. If there are multiple drivers specified, the first one in the list would be the default driver. Seeconvoy createfor details.
info
NAME:
info - information about convoy
USAGE:
command info [arguments...]
create
NAME:
convoy create - create a new volume: create [volume_name] [options]
USAGE:
convoy create [command options] [arguments...]
OPTIONS:
--driver specify using driver other than default
--size size of volume if driver supports, in bytes, or end in either G or M or K
--backup create a volume of backup if driver supports
--s3-endpoint custom S3 endpoint URL, like http://minio.example.com:9000
--id driver specific volume ID if driver supports
--type driver specific volume type if driver supports
--iops IOPS if driver supports
--vm Prepare volume for Rancher VM if driver supports
createcommand would create a volume.volume_nameis optional. If novolume_namespecified, an automatically name would be generated in format ofvolume-xxxxxxxx, in which last 8 characters would be the first 8 characters of volume's automatical generated UUID. Thevolume_namehere would be the name user used with Docker.--driveroption would be used to specify which driver to use if there are more than one driver supported in the setup. Without the option, the default driver(first driver in the list of--driverswhen executingdaemoncommand) would be used.--sizeoption would be used to specify a volume's size if driver supports. Current it's supported bydevicemapperandebs.--backupoption would be used to specify create a volume from existing backup. The backup would be in a format of URL and can be driver specific. See [backup] command for more details.--s3-endpointoption sets the S3 endpoint used to restore from an S3 backup.--id,--type,--iopsare driver specific options. Currenty they're supported byebs.
delete
NAME:
delete - delete a volume: delete <volume> [options]
USAGE:
command delete [command options] [arguments...]
OPTIONS:
--reference, -r only delete the reference of volume if driver supports
- Volume can be referred by name, UUID, or partial UUID.
--referencewould only delete the reference of volume if driver supports. It provides ability to retain the volume after volume no longer managed by Convoy. Current it's supported byvfsandebs.
mount
NAME:
mount - mount a volume: mount <volume> [options]
USAGE:
command mount [command options] [arguments...]
OPTIONS:
--mountpoint mountpoint of volume, if not specified, it would be automatic mounted to default directory
- Volume can be referred by name, UUID, or partial UUID.
umount
NAME:
umount - umount a volume: umount <volume> [options]
USAGE:
command umount [arguments...]
- Volume can be referred by name, UUID, or partial UUID.
list
NAME:
list - list all managed volumes
USAGE:
command list [command options] [arguments...]
OPTIONS:
--driver Ask for driver specific info of volumes and snapshots
inspect
NAME:
inspect - inspect a certain volume: inspect <volume>
USAGE:
command inspect [arguments...]
OPTIONS:
--help, -h show help
- Volume can be referred by name, UUID, or partial UUID.
snapshot
NAME:
convoy snapshot - snapshot related operations
USAGE:
convoy snapshot command [command options] [arguments...]
COMMANDS:
create create a snapshot for certain volume: snapshot create <volume>
delete delete a snapshot: snapshot delete <snapshot>
inspect inspect an snapshot: snapshot inspect <snapshot>
help, h Shows a list of commands or help for one command
OPTIONS:
--help, -h show help
- For using this subcommand with
ebs, seeebsfor details.
create
NAME:
snapshot create - create a snapshot for certain volume: snapshot create <volume>
USAGE:
command snapshot create [command options] [arguments...]
OPTIONS:
--name name of snapshot
- Volume can be referred by name, UUID, or partial UUID.
delete
NAME:
snapshot delete - delete a snapshot: snapshot delete <snapshot>
USAGE:
command snapshot delete [arguments...]
- Snapshot can be referred by name, UUID, or partial UUID.
inspect
NAME:
snapshot inspect - inspect an snapshot: snapshot inspect <snapshot>
USAGE:
command snapshot inspect [arguments...]
- Snapshot can be referred by name, UUID, or partial UUID.
backup
NAME:
convoy backup - backup related operations
USAGE:
convoy backup command [command options] [arguments...]
COMMANDS:
create create a backup in objectstore: create <snapshot>
delete delete a backup in objectstore: delete <backup>
list list backups in objectstore: list <dest>
inspect inspect a backup: inspect <backup>
help, h Shows a list of commands or help for one command
OPTIONS:
--s3-endpoint custom S3 endpoint URL, like http://minio.example.com:9000
--help, -h show help
--s3-endpointoption sets the S3 endpoint for working with S3 backups.- For using this subcommand with
ebs, seeebsfor details.
create
NAME:
backup create - create a backup in objectstore: create <snapshot>
USAGE:
command backup create [command options] [arguments...]
OPTIONS:
--dest destination of backup if driver supports, would be url like s3://bucket@region/path/ or vfs:///path/
- Snapshot can be referred by name, UUID, or partial UUID.
- This command would create a backup from existing snapshot, making it possible to restore this backup to a volume in the future. The command would return a backup represented by a URL for future references.
- There are two kinds of backup destination(objectstores as we called them) supported today,
s3andvfs. For using AWS S3 as backup destination, user need to setup S3 certificate first, see here for more information. Andvfsdestination can be a mounted NFS.
delete
NAME:
backup delete - delete a backup in objectstore: delete <backup>
USAGE:
command backup delete [arguments...]
list
NAME:
backup list - list backups in objectstore: list <dest>
USAGE:
command backup list [command options] [arguments...]
OPTIONS:
--volume-uuid uuid of volume
- It's likely a costly operation, since it would list all the possible backups in the objectstore. So it's better to filter it with
--volume-uuid - The command is not supported by
ebs. Seeebsfor details.
inspect
NAME:
backup inspect - inspect a backup: inspect <backup>
USAGE:
command backup inspect [arguments...]