mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 21:24:28 +00:00
1.5 KiB
1.5 KiB
slug | sidebar_position | sidebar_label |
---|---|---|
/en/operations/utilities/clickhouse-disks | 59 | clickhouse-disks |
clickhouse-disks
A utility providing filesystem-like operations for ClickHouse disks.
Program-wide options:
--config-file, -C
-- path to ClickHouse config, defaults to/etc/clickhouse-server/config.xml
.--save-logs
-- Log progress of invoked commands to/var/log/clickhouse-server/clickhouse-disks.log
.--log-level
-- What type of events to log, defaults tonone
.--disk
-- what disk to use formkdir, move, read, write, remove
commands. Defaults todefault
.
Commands
copy [--disk-from d1] [--disk-to d2] <FROM_PATH> <TO_PATH>
. Recursively copy data fromFROM_PATH
at diskd1
(defaults todisk
value if not provided) toTO_PATH
at diskd2
(defaults todisk
value if not provided).move <FROM_PATH> <TO_PATH>
. Move file or directory fromFROM_PATH
toTO_PATH
.remove <PATH>
. RemovePATH
recursively.link <FROM_PATH> <TO_PATH>
. Create a hardlink fromFROM_PATH
toTO_PATH
.list [--recursive] <PATH>...
List files atPATH
s. Non-recursive by default.list-disks
. List disks names.mkdir [--recursive] <PATH>
. Create a directory. Non-recursive by default.read: <FROM_PATH> [<TO_PATH>]
Read a file fromFROM_PATH
toTO_PATH
(stdout
if not supplied).write [FROM_PATH] <TO_PATH>
. Write a file fromFROM_PATH
(stdin
if not supplied) toTO_PATH
.