Documentation ¶
Index ¶
- func Chown(path string, ch *clickhouse.ClickHouse, disks []clickhouse.Disk, ...) error
- func HardlinkBackupPartsToStorage(backupName string, backupTable metadata.TableMetadata, disks []clickhouse.Disk, ...) error
- func IsDuplicatedParts(part1, part2 string) error
- func IsFileInPartition(disk, fileName string, partitionsBackupMap common.EmptyMap) bool
- 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(path string, ch *clickhouse.ClickHouse, disks []clickhouse.Disk, recursive bool) error
Chown - set permission on path to clickhouse user This is necessary that the ClickHouse will be able to read parts files on restore
func HardlinkBackupPartsToStorage ¶
func HardlinkBackupPartsToStorage(backupName string, backupTable metadata.TableMetadata, disks []clickhouse.Disk, tableDataPaths []string, ch *clickhouse.ClickHouse, toDetached bool) error
HardlinkBackupPartsToStorage - copy partitions for specific table to detached folder
func IsDuplicatedParts ¶
func IsFileInPartition ¶
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.