baastide agent
baastide agent
Run the BaaStide agent daemon
Synopsis
The "agent" command runs the BaaStide agent daemon. It reads the identity written by "agent enroll", connects to the BaaStide gateway and runs the orders it receives, until it gets SIGINT or SIGTERM. On Windows, the service installed by "baastide service install" runs it, until the service manager stops it; its log goes to %ProgramData%\BaaStide\log\agent.log.
Exit status
Exit status is 0 on a clean stop (SIGINT, SIGTERM or service stop). Exit status is 1 if there was any error.
baastide agent [flags]
Examples
# Run the agent in the foreground (the service normally does it)
baastide agent
# Run it with more detail in the log
baastide agent --log-level debug
Options
--binary path installed agent binary path (default "/usr/local/bin/baastide")
--cache-dir directory backup cache directory, never backed up (default "/var/cache/baastide")
--config file agent identity file (default "/etc/baastide/agent.conf")
-h, --help help for agent
--log-level level log level: debug, info, warn or error (default "info")
--restore-socket path local restore socket path (default "/run/baastide/restore.sock")
--service unit systemd unit (Windows: service name) of the agent (default "baastide.service")
--state-dir directory autoupdate state directory (default "/var/lib/baastide")
SEE ALSO
- baastide - Back up and restore this machine with BaaStide
- baastide agent enroll - Enroll this machine in BaaStide
- baastide agent scripts - Turn the backup scripts on or off on this machine