Fortinet white logo
Fortinet white logo

EMS CLI Reference

7.4.4

execute copyfile

execute copyfile

copies a file to/from a location(s) on the host

Synopsis

execute copyfile copies a file to/from a location(s) on the host.

Use the --from and --to flags to specify the source and destination paths of the file to be copied.

Only the /exchange, /opt/forticlientems and /var/log/forticlientems folders (and their subfolders) can be accessed.

execute copyfile [flags]

Options

      --from string   The file that will be copied.
  -h, --help          help for copyfile
      --preserve      The permissions of the original file will be set to the copied file.
      --to string     Path and file name to where the file will copied.

See also

  • execute - for executing commands on the host

execute copyfile

execute copyfile

copies a file to/from a location(s) on the host

Synopsis

execute copyfile copies a file to/from a location(s) on the host.

Use the --from and --to flags to specify the source and destination paths of the file to be copied.

Only the /exchange, /opt/forticlientems and /var/log/forticlientems folders (and their subfolders) can be accessed.

execute copyfile [flags]

Options

      --from string   The file that will be copied.
  -h, --help          help for copyfile
      --preserve      The permissions of the original file will be set to the copied file.
      --to string     Path and file name to where the file will copied.

See also

  • execute - for executing commands on the host