Files
backy/docs/content/cli/exec.md
Andrew Woodlee 0d6a13c1cf
Some checks failed
ci/woodpecker/push/go-lint Pipeline failed
ci/woodpecker/push/publish-docs Pipeline was successful
Cmd Type script now correctly appends arguments
2025-11-15 17:37:17 -06:00

677 B
Executable File

title
title
Exec

The exec subcommand can do some things that the configuration file can't do yet. The command exec host can execute commands on many hosts.

exec host takes the following arguments:

  -c, --commands strings   Accepts space-separated names of commands.
  -h, --help               help for host
  -m, --hosts strings      Accepts space-separated names of hosts.

The commands have to be defined in the config file. The hosts need to at least be in the ssh_config(5) file.

backy exec host [--commands=command1 -commands=command2 ... | -c command1 -c command2 ...] [--hosts=host1 --hosts=hosts2 ... | -m host1 -m host2 ...]  [flags]