Highlighted
Contributor
Contributor

Copy Datastore Folders or Files with command line

Hi,

I want to copy datastore folder with command line.

Do you have any sugesstions?

There is vmdk and meta data file inside of datastore folders.

I want to copy this files  "A" datastore to "B" datastore.

It is possible to "cp"  command and "-r" option.

But , I want to know  if it is anything else.

It would be perfect if we could implement the procedure at the URL below on the command line.

Copy Datastore Folders or Files in the VMware Host Client

Please help me !

Thank you.

0 Kudos
4 Replies
Highlighted
Enthusiast
Enthusiast

Hi there,

Maybe this will help:

Using vmkfstools

www.hyper-converged.com
0 Kudos
Highlighted
Enthusiast
Enthusiast

I am a big fan of PowerCLI so I would utilize that for such task

https://kb.vmware.com/s/article/2001041

Copy-DatastoreItem -Item ds:\virtualmachine1\virtualmachine1.* -Destination ds:\new-folder\

Copy-DatastoreItem - PowerCLI System.Collections.Hashtable.ModuleName Help Reference

Martin Gavanda https://martingavanda.com https://learnvmware.online
0 Kudos
Highlighted
Contributor
Contributor

Thank you so much!

0 Kudos
Highlighted
Contributor
Contributor

Hi

Thank you for the advice.

I like that ,and I was able to do it!

0 Kudos