clickhouse-backup icon indicating copy to clipboard operation
clickhouse-backup copied to clipboard

BUG IN ENTRYPOINT.SH

Open sdarshil opened this issue 3 years ago • 3 comments

in the entrypoint.sh there is a condition which says if the command is executable it will not run the clickhouse-backup command and will directly execute it :

i was running this command to use watch feature of clickhouse-backup clickhouse-backup watch --watch-interval 23h --full-interval 24h --watch-backup-name-template=shard{shard}-{type}-{time:20060102150405}

now none of the provided condition passes here and i am unable to use the watch functionality in the container of clickhouse-backup

i built my image with custom entrypoint.sh which seems to be working : #!/bin/bash if [[ $# -lt 1 ]] || [[ "$1" == "--"* ]] || [[ ! -x $(command -v "$1") ]] || [[ "$1" == "watch" ]]; then exec /bin/clickhouse-backup "$@" fi exec "$@"

sdarshil avatar Jan 19 '23 14:01 sdarshil

Could you provide full docker command which you try to run?

Slach avatar Jan 21 '23 18:01 Slach

https://github.com/AlexAkulov/clickhouse-backup/pull/595 i have created PR for this

sdarshil avatar Jan 22 '23 09:01 sdarshil

fixed in https://github.com/AlexAkulov/clickhouse-backup/pull/595

Slach avatar Jan 22 '23 10:01 Slach