Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP SQL Anywhere, on-demand edition 1.0 SP 6 » Task syntax

CopyDirectory task

Copies all files in the source directory to a target directory.

Syntax 1 (SQL)
CALL DBCloud.CopyDirectory ( source_directory=source_directory, target_directory=target_directory, host=host )
Syntax 2 (Cloud Command utility)
dbcloudcmd run CopyDirectory source_directory target_directory host
Parameters
  • source_directory

    The directory to copy. (Required)

  • target_directory

    The directory the files are copied to. The directory is created if it does not already exist. (Required)

  • host

    The host the files are copied to. Accepts a search query that identifies one host, for example a host name or ID. (Required)

Required privileges

ManageSystemResources

Remarks

This task copies the files from the source directory to the specified directory. The files remain in the source directory.

Note Linux specificThe permission of the target file or directory is not maintained by the task. The mode is defaulted to 0777 for the directory and 0644 for the file, and is modified by the process's umask in the usual way.