Files, data and backups
All Cloudify data is in ~/.cloudflared (Docker: the /root/.cloudflared volume, Windows: %USERPROFILE%\.cloudflared).
What is where#
~/.cloudflared/
├── cert.pem first Cloudflare login (cloudflared's default certificate) SECRET
├── <tunnel-id>.json credentials of each tunnel SECRET
├── config-<name>.yml each tunnel's configuration: its routes (ingress rules)
├── tunnel_manager_state.json Cloudify's list of tunnels, routes, auto-start flags, replicas
├── logs/<name>.log log of tunnels started directly (not by systemd/launchd)
└── cloudify/
├── users.json dashboard accounts (bcrypt password hashes) 600
├── accounts.json connected domains; DNS-cleanup API tokens SECRET, 600
├── certs/<id>.pem certificates of additionally connected domains SECRET, 600
├── status.json, login.log progress of the last Cloudflare login
└── backups/ settings backups made by the installer before each update 600
Outside ~/.cloudflared:
| What | Where |
|---|---|
| Program | ~/.local/share/pipx/venvs/cloudify-cli/ (older pipx: ~/.local/pipx/venvs/...) or ~/.local/share/cloudify/venv/ |
| Launcher | ~/.local/bin/cloudify |
| cloudflared | /usr/local/bin/cloudflared, Homebrew, your package manager, or ~/.local/bin/cloudflared |
| Auto-start, systemd | ~/.config/systemd/user/cloudflared-tunnel-<name>.service |
| Auto-start, cron | ~/.local/bin/start-tunnel-<name>.sh and a line in crontab -l |
| Auto-start, macOS | ~/Library/LaunchAgents/com.user.cloudflare.tunnel.<name>.plist |
| Auto-start, Windows | task CloudflaredTunnel-<name>, %USERPROFILE%\.cloudflared\tunnel-<name>.bat |
Keep it private#
chmod 700 ~/.cloudflared
Never commit the folder to Git or include it in an image. Replica files contain tunnel credentials too. Details: The idea behind it.
Backup#
tar -czf cloudify-backup-$(date +%F).tar.gz -C ~ .cloudflared # contains secrets: store it safely
Docker: see Docker.
Restore or move#
- Install Cloudify on the new machine (Linux, macOS, Docker).
- Stop the tunnels on the old machine:
cloudify tunnel stop <name>and disable auto-start. - Restore:
tar -xzf cloudify-backup-2026-11-15.tar.gz -C ~ - Recreate auto-start and check:
cloudify tunnel resume # starts every tunnel marked for auto-start and recreates its entry
cloudify tunnel list
To run a tunnel on two machines, use replicas: Getting started.
Reset#
| Goal | How |
|---|---|
| Forgot the dashboard password | Stop the dashboard, delete or edit ~/.cloudflared/cloudify/users.json, start it and create a new first account. Deleting the file removes all accounts. |
| Reset settings, keep tunnels | Delete ~/.cloudflared/cloudify/. Reconnect your domains. |
| Remove a tunnel | cloudify tunnel delete <name> |