Use > Server Automation > SA Global Shell > Global Shell examples > Copy files within the OGFS

Copy files within the OGFS

Do not use the techniques in this section to copy large files. The OGFS is not designed distribute large amounts of data. However, you can use these techniques for copying small files (such as configuration files) to and from managed servers.

Copy myfile.txt from the home directory in the OGFS of the jdoe user to the C:\temp directory of the Windows server named abc.opsware.com:

cp  /home/jdoe/myfile.txt \
/opsw/Server/@/abc.opsware.com/files/Administrator/C/temp

 

Copy myfile.txt from the home directory in the OGFS of the jdoe user to the /tmp directory of the UNIX server named m25.opsware.com6:

cp /home/jdoe/myfile.txt \
/opsw/Server/@/m256.opsware.com/files/root/tmp

 

Copy the C:\temp\myfile.txt file from the abc.opsware.com server to the m344.opsware.com server:

cp /opsw/Server/@/abc.opsware.com/files/\
Administrator/C/temp/myfile.txt \
/opsw/Server/@/m344.opsware.com/files/\
Administrator/C/temp/myfile.txt