Skip to content

schemaClone ​

Command: schemaClone
Category: System Tools
Status: Production Ready

Description ​

Clone entire schema with or without data

Syntax ​

bash
hana-cli schemaClone [options]

Command Diagram ​

Aliases ​

  • schemaclone
  • cloneSchema
  • copyschema

Parameters ​

For a complete list of parameters and options, use:

bash
hana-cli schemaClone --help

Options ​

OptionAliasTypeDefaultDescription
--sourceSchema-ssstring**CURRENT_SCHEMA**Source schema to clone
--targetSchema-tsstring**CURRENT_SCHEMA**Target schema
--includeData-idbooleanfalseClone table data
--includeGrants-igbooleanfalseClone grants
--parallel-parnumber1Parallel workers
--excludeTables-etstring-Comma-separated tables to skip
--dryRun-dr, --previewbooleanfalsePreview operations only
--timeout-tonumber7200Operation timeout in seconds
--profile-pstring-Connection profile

Examples ​

Basic Usage ​

bash
hana-cli schemaClone --sourceSchema SOURCE --targetSchema TARGET --includeData

Clone entire schema with or without data

See the Commands Reference for other commands in this category.

See Also ​