filesystemhelper

package
v2.4.34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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, diskMap map[string]string, tableDataPaths []string, ch *clickhouse.ClickHouse, toDetached bool) error

HardlinkBackupPartsToStorage - copy partitions for specific table to detached folder

func IsDuplicatedParts

func IsDuplicatedParts(part1, part2 string) error

func IsFileInPartition

func IsFileInPartition(disk, fileName string, partitionsBackupMap common.EmptyMap) bool

func IsPartInPartition

func IsPartInPartition(partName string, partitionsBackupMap common.EmptyMap) bool

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

func MoveShadow

func MoveShadow(shadowPath, backupPartsPath string, partitionsBackupMap common.EmptyMap, version int) ([]metadata.Part, int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL