Data Backup and Recovery

XCP create directory on target

moshel
1,182 Views

Maybe I am missing something, but how do i get XCP to create the source directory on the target?

xcp copy vserver1:/volume1/directory1 vserver2:/volume2

this command copies the FILES in directory1 to the ROOT of  volume2 on vserver2. I would like the directory1 itself to be copied.

 

Thanks,

Moshe

1 ACCEPTED SOLUTION

elementx
1,144 Views

I think dst_vol is required:

"The copy command requires having source and destination paths as variables."

https://library.netapp.com/ecm/ecm_download_file/ECMLP2875795

 

Could be that at some point the assumption was that users always copy one volume to another and if the destination doesn't exist, it'd be created by ONTAP admin rather than XCP user.

View solution in original post

2 REPLIES 2

elementx
1,145 Views

I think dst_vol is required:

"The copy command requires having source and destination paths as variables."

https://library.netapp.com/ecm/ecm_download_file/ECMLP2875795

 

Could be that at some point the assumption was that users always copy one volume to another and if the destination doesn't exist, it'd be created by ONTAP admin rather than XCP user.

moshel
1,089 Views

Thanks for pointing me in the right direction. In the end needed to create the destination dir manually and use the subdirectory syntax:

xcp copy vserver1:/volume1:/subdirectory1 vserver2:/volume2:/subdirectory2

After the copy succeeds, subdirectory2 will have the proper ownership and modes.

Public