Search code examples
clickhouseclickhouse-backup

How to correctly set a path to default config for clickhouse backup?


I'm setting up clickhouse-backup utility locally. I go through the installation steps and now I'm stuck on the step with changing settings for '.config.yml' file.

I ran sudo ./clickhouse-backup create from the folder where I decompressed the utility and could found created backup in /var/lib/clickhouse/backup

When I execute:

sudo ./clickhouse-backup default-config

,I see the default settings. Now I want to change a config file by adding credentials for ftp, s3 and so on. What is the correct way of adding credentials to config file? I am not sure which file is being used. Why I cannot find it in "/etc/clickhouse-backup/config.yml" location?


Solution

  • ./clickhouse-backup default-config this command generates a template for the config with default settings.

    try

    sudo ./clickhouse-backup default-config > /etc/clickhouse-backup/config.yml
    
    vi /etc/clickhouse-backup/config.yml