-
Is it possible to use govc to download files in batches from a datastore? After looking at the documentation and trying a few methods, I've been unable to find a way to script the collection of all files/resources within a directory on a datastore. Is this possible? Here is what I've been trying (in various iterations including wildcards, etc): Dir Structure: govc datastore.download -ds="$DATASTORE_NAME" "/path on datastore/sub path/" "/localOS/storage/sub path/" (I've also tried like /sub path/* and similar to see if it was just a syntax issue) This appears to start the process but errors out shortly after saying: Any ideas what I'm missing or can someone point me in the right direction? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No, datastore.download only copies a single file. Can you describe your use-case? There is govc export.ovf, which can download a VM and its related files. |
Beta Was this translation helpful? Give feedback.
No, datastore.download only copies a single file. Can you describe your use-case? There is govc export.ovf, which can download a VM and its related files.