Agent config¶
fallbck-agent enroll writes agent.yaml into the data dir for you, so you rarely need to touch it. Packaged installs keep it in /var/lib/fallbck/agent/agent.yaml. On Windows it's %ProgramData%\fallbck\agent. Env vars win over the file. There's a commented example at deploy/agent.yaml.example.
The db_backup section belongs to you: it survives re-enrollment. The easier way to change it is fallbck-agent database config <key> <value>.
Identity and connection¶
Mostly written at enrollment.
| Key | Env | What it does |
|---|---|---|
agent_id |
FALLBCK_AGENT_ID |
Set at enrollment. |
hostname |
FALLBCK_AGENT_HOSTNAME |
Defaults to the OS hostname. |
server_url |
FALLBCK_AGENT_SERVER_URL |
The server's public URL. The only endpoint the agent uses. |
data_dir |
FALLBCK_AGENT_DATA_DIR |
/var/lib/fallbck/agent as root, ~/.fallbck/agent otherwise. |
task_queue |
FALLBCK_AGENT_TASK_QUEUE |
Set at enrollment. |
namespace |
FALLBCK_AGENT_NAMESPACE |
Set at enrollment. |
auth_token |
FALLBCK_AGENT_AUTH_TOKEN |
Bearer token. The file has to be 0600. |
token_expires_at |
Rotated automatically. | |
server_ca_cert_path |
FALLBCK_AGENT_SERVER_CA |
Private CA for server_url. |
insecure_skip_verify |
FALLBCK_AGENT_INSECURE_SKIP_VERIFY |
Testing only. |
enrollment_key |
FALLBCK_AGENT_ENROLLMENT_KEY |
Self-enroll on first start. |
log_level |
FALLBCK_AGENT_LOG_LEVEL |
debug, info, warn or error. DEBUG=true overrides it. |
vss |
FALLBCK_AGENT_VSS |
Windows only. Shadow copies, default true. |
max_concurrent_activities |
FALLBCK_AGENT_MAX_CONCURRENT_ACTIVITIES |
How many jobs, volume uploads and log or inventory requests run at once. Default 16. More wait their turn (backups for up to 12 hours; View logs and Refresh inventory give up after 20 seconds, so keep some headroom). |
VCS jobs¶
| Key | Env | What it does |
|---|---|---|
vcs_state_dir |
FALLBCK_AGENT_VCS_STATE_DIR |
Where the git mirrors of VCS jobs live between runs. Default <data_dir>/vcs-state. Needs room for every repository the agent backs up. |
VCS tokens, Microsoft 365 app credentials and remote storage credentials kept on the agent are managed with fallbck-agent vcs profile, fallbck-agent m365 profile and fallbck-agent remote profile (which can also import a remote from an rclone.conf with --from-rclone-conf); they live in the same encrypted store as the database profiles. Remote storage jobs keep the progress of a split-per-root run in <data_dir>/remote-state, so a retry skips the roots that already finished.
db_backup¶
See Databases.
| Key | Env | Default | What it does |
|---|---|---|---|
spool_dir |
FALLBCK_AGENT_DB_SPOOL_DIR |
<data_dir>/spool |
Dumps get staged here before upload. |
state_dir |
FALLBCK_AGENT_DB_STATE_DIR |
<data_dir>/state/db |
Last WAL / binlog position per job. |
min_free_bytes |
FALLBCK_AGENT_DB_MIN_FREE_BYTES |
A run won't start below this much free spool. | |
keep_failed_spool |
FALLBCK_AGENT_DB_KEEP_FAILED_SPOOL |
false |
Keep failed runs' spool around for a post-mortem. |
tools.postgres_bindir |
FALLBCK_AGENT_DB_POSTGRES_BINDIR |
auto | Pin a pg_dump at least as new as the server. |
tools.mysql_bindir |
FALLBCK_AGENT_DB_MYSQL_BINDIR |
auto | |
tools.mongo_bindir |
FALLBCK_AGENT_DB_MONGO_BINDIR |
auto | |
profiles.<name> |
FALLBCK_AGENT_DB_PROFILE_<NAME>_{ENGINE,USER,PASSWORD,PASSWORD_FILE,HOST,PORT} |
Plain-text credential profiles. Use the encrypted store instead (fallbck-agent database profile ...). |
A file profile looks like this:
db_backup:
profiles:
postgres:
engine: postgres
user: backup
password_file: /etc/fallbck/pg-backup.pass
tls: { mode: verify-full, ca_file: /etc/ssl/certs/corp-ca.pem }
docker_backup¶
See Docker hosts.
| Key | Env | Default | What it does |
|---|---|---|---|
volume_access |
FALLBCK_AGENT_DOCKER_VOLUME_ACCESS |
auto |
auto, direct or helper. |
helper_image |
FALLBCK_AGENT_DOCKER_HELPER_IMAGE |
alpine:3.24 |
Image for helper containers. |
socket |
FALLBCK_AGENT_DOCKER_SOCKET |
DOCKER_HOST or /var/run/docker.sock |
Unix sockets only. |
min_free_bytes |
FALLBCK_AGENT_DOCKER_MIN_FREE_BYTES |
1073741824 (1 GiB) |
Free space a run leaves in the spool. A run won't start below it, an image that wouldn't fit isn't saved, a volume copy that wouldn't fit is skipped, and a helper copy is stopped when the disk drops under it. Each one shows as a warning on the run. |