Skip to content

Backup Guide is incorrect #774

@texclayton

Description

@texclayton

What happened?

Running cscli config backup fails with an error:
Error: 'cscli config backup' has been removed, you can manually backup/restore /etc/crowdsec instead

crowdsecurity/crowdsec#3158 removed cscli config backup, but no documentation was updated.
My backups have been failing since I updated and I had to go look for the PR that removed the backup command to understand why.

Please update the docs, especially https://docs.crowdsec.net/docs/preview/backup_guide/

What did you expect to happen?

cscli config backup worked and a backup was made

How can we reproduce it (as minimally and precisely as possible)?

cscli config backup

Anything else we need to know?

No response

Crowdsec version

version: v1.6.8-f209766e
Codename: alphaga
BuildDate: 2025-03-25_15:56:53
GoVersion: 1.24.1
Platform: docker
libre2: C++
User-Agent: crowdsec/v1.6.8-f209766e-docker
Constraint_parser: >= 1.0, <= 3.0
Constraint_scenario: >= 1.0, <= 3.0
Constraint_api: v1
Constraint_acquis: >= 1.0, < 2.0
Built-in optional components: cscli_setup, datasource_appsec, datasource_cloudwatch, datasource_docker, datasource_file, datasource_http, datasource_journalctl, datasource_k8s-audit, datasource_kafka, datasource_kinesis, datasource_loki, datasource_s3, datasource_syslog, datasource_victorialogs, datasource_wineventlog

OS version

Using docker image:

crowdsecurity/crowdsec:latest

Enabled collections and parsers

$ cscli hub list -o raw
# paste output here

Acquisition config

```console # On Linux: $ cat /etc/crowdsec/acquis.yaml /etc/crowdsec/acquis.d/* # paste output here

On Windows:

C:> Get-Content C:\ProgramData\CrowdSec\config\acquis.yaml

paste output here

Config show

$ cscli config show
# paste output here

Prometheus metrics

$ cscli metrics
# paste output here

Related custom configs versions (if applicable) : notification plugins, custom scenarios, parsers etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions