# Example Prometheus alerts
- alert: ClickHouseBackupFailed
  expr: increase(kube_job_status_failed{job_name=~".*clickhouse-backup.*"}[5m]) > 0
  for: 0m
  labels:
    severity: warning
  annotations:
    summary: "ClickHouse backup job failed"
    description: "ClickHouse backup job {{ $labels.job_name }} has failed"
```

## Migration Between Backup Methods

### From SQL-based to ClickHouse Backup Tool

1. Enable the backup server:

   ```yaml
   clickhouse:
     backupServer:
       enabled: true
   ```

2. Create initial backup with the tool

3. Disable SQL-based backup:
   ```yaml
   clickhouse:
     backup:
       enabled: false
   ```

### From ClickHouse Backup Tool to SQL-based

1. Disable backup server:

   ```yaml
   clickhouse:
     backupServer:
       enabled: false
   ```

2. Enable SQL-based backup:
   ```yaml
   clickhouse:
     backup:
       enabled: true
   ```

## Support

For additional help with ClickHouse backups:

* [ClickHouse Backup Documentation](https://github.com/Altinity/clickhouse-backup)
* [ClickHouse Backup Command Reference](https://clickhouse.com/docs/operations/backup)
* [Opik Community Support](https://github.com/comet-ml/opik/issues)