This command copies files and directories to and from the data zos.
zos copy source dest [--recursive]
The datagrid source from which the files or directories are to be copied.
The datagrid destination to which the files or directories are to be copied.
Processes directories recursively.
Specifies the terminal width for formatting. The user must enter a value with this option.
Displays a help message for this operation.
Turns on debug output during this operation.
Turns on verbose output during this operation.
Force TLS/SSL encryption [on|off]. The user must enter a value with this option.
Port number for TLS/SSL connections. The user must enter a value with this option.
Force acceptance of new TLS server certificates.
Force acceptance of all TLS server certificates.
To copy a local file into a previously created datagrid subdirectory, use the following command:
zos copy local.txt grid:///images
To copy a file from the current job instance directory to a local file, use the following command:
zos copy grid:///^/results.txt local.txt
To copy a file from a named job instance directory to a local file, use the following command:
zos copy grid:///^user.myjob.1024/results.txt local.txt
To copy a local file into the job directory for job myjob, use the following command:
zos copy local.txt grid:///!myjob
To copy a local file into the current user’s home directory, use the following command:
zos copy local.txt grid:///~/local.txt
To copy a local file into another user’s (barney) home directory, use the following command:
zos copy local.txt grid:///~barney/local.txt
To copy a local file into a subdirectory of the job directory, use the following command:
zos copy local.txt grid:///!myjob/subdir
To copy a local file into the current job instance directory, use the following command:
zos copy local.txt grid:///^/
To recursively copy a local directory to the datagrid root, creating a new directory, use the following command:
zos copy /home/tester/myDir grid:/// -r