FlowCI / flow-core-x

Powerful and user-friendly CI/CD server with high availability, parallel processing, runner auto-scaling
https://flowci.github.io
Apache License 2.0
1.61k stars 121 forks source link

Question: How to backup config and flows from server #398

Closed luke-riu closed 3 years ago

luke-riu commented 3 years ago

I am currently running the server on docker. How can I backup/ export my flows etc? Thanks

gy2006 commented 3 years ago

it doesn't support backup/export flows from web UI currently.

the default database dir is located at your $HOME dir

https://github.com/FlowCI/docker-install/blob/master/server.sh

    ## setup data path
    export FLOWCI_DATABASE_DIR="$HOME/.flowci/db"
    export FLOWCI_WORKSPACE_DIR="$HOME/.flowci/ws"
    export FLOWCI_DATA_DIR="$HOME/.flowci/data"

so the flows wouldn't be lost after the docker container deleted

luke-riu commented 3 years ago

perfect. Thank you