Add support for custom local copy via the PBS_CP variable
Follow the PBS Pro Design Document Guidelines.
Links
- Link to discussion on Developer Forum: http://community.pbspro.org/t/add-support-for-custom-local-file-transfer-command/2000
- Link to pull request: https://github.com/PBSPro/pbspro/pull/1515
Overview
This is a design proposal to allow users to specify a custom local file transfer command to the PBS MoM via a PBS_CP variable in the pbs.conf file.
Motivation
Currently, administrators can specify a custom command for the PBS MoM to use for remote file transfers by specifying the command in the PBS_SCP and PBS_RCP variables in /etc/pbs.conf. If these variables are unset, PBS will default to /bin/scp or <PBS_HOME>/sbin/pbs_rcp, respectively. Unfortunately, there is no way to specify a custom command for local copies. PBS will always use /bin/cp on *nix based systems and xcopy on Windows systems.
Administrators should have the ability to specify custom commands for local copies like they do for remote copies. This is a problem because for some filesystems, the default cp or xcopy programs might not be the most optimal way to transfer files and the PBS administrator should be able to use a better option, if one exists.
Details
This change adds support for the PBS_CP variable in /etc/pbs.conf. If PBS_CP is unset, the MoM will default to /bin/cp on *nix systems and xcopy on Windows systems. PBS_CP will be implemented like PBS_RCP and PBS_SCP.
Project Documentation Main Page