Need a quick way to move files on one datastore to the datastore of another host that is not within the same vCenter?
In a Nutanix environment SSH is enabled on the hosts so we can use SCP to do this. I needed to move an ISO repository from the production cluster to the TEST / DEV cluster. Log into the source host as root, change directory to the datastore folder (/vmfs/volumes/DATASTORE/FOLDER) and then run the following command:
scp –r * root@DESTINATION:/vmfs/volumes/DATASTORE/FOLDER
# The destination FOLDER must already exist on the destination DATASTORE.