VMware Cloud Community
Potehan
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.

Reply
0 Kudos
4 Replies
Wonlliv
Enthusiast
Enthusiast

Hi there,

Maybe this will help:

Using vmkfstools

www.hyper-converged.com
Reply
0 Kudos
Gavis4569
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
Reply
0 Kudos
Potehan
Contributor
Contributor

Thank you so much!

Reply
0 Kudos
Potehan
Contributor
Contributor

Hi

Thank you for the advice.

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

Reply
0 Kudos