Documentation
¶
Index ¶
- func Chown(filename string, ch *clickhouse.ClickHouse, disks []clickhouse.Disk) error
- func CopyDataToDetached(backupName string, backupTable metadata.TableMetadata, disks []clickhouse.Disk, ...) error
- func CreatePartitionsToBackupMap(partitions []string) common.EmptyMap
- func IsDuplicatedParts(part1, part2 string) error
- func IsPartInPartition(partName string, partitionsBackupMap common.EmptyMap) bool
- func Mkdir(name string, ch *clickhouse.ClickHouse, disks []clickhouse.Disk) error
- func MkdirAll(path string, ch *clickhouse.ClickHouse, disks []clickhouse.Disk) error
- func MoveShadow(shadowPath, backupPartsPath string, partitionsBackupMap common.EmptyMap) ([]metadata.Part, int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chown ¶
func Chown(filename string, ch *clickhouse.ClickHouse, disks []clickhouse.Disk) error
Chown - set permission on file to clickhouse user This is necessary that the ClickHouse will be able to read parts files on restore
func CopyDataToDetached ¶ added in v1.3.1
func CopyDataToDetached(backupName string, backupTable metadata.TableMetadata, disks []clickhouse.Disk, tableDataPaths []string, ch *clickhouse.ClickHouse) error
CopyDataToDetached - copy partitions for specific table to detached folder
func IsDuplicatedParts ¶
func IsPartInPartition ¶
func Mkdir ¶
func Mkdir(name string, ch *clickhouse.ClickHouse, disks []clickhouse.Disk) error
func MkdirAll ¶
func MkdirAll(path string, ch *clickhouse.ClickHouse, disks []clickhouse.Disk) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.