<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic copy files from one CIFS share to another...the NetApp way in Network and Storage Protocols</title>
    <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/copy-files-from-one-CIFS-share-to-another-the-NetApp-way/m-p/443969#M9858</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am banging my head against the wall and can't find the answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 CIFS and want to copy files from one CIFS subfolder to a different CIFS subfolder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normally I just go to windows file explorer and copy, or even use RoboCopy, Powershell...whatever&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my problems: can't really do that, the 2 CIFS are in 2 different vLANs, not visible to each other, and the we are talking 1.5 TB with about 4 mil files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, considering NetApps file system WAFL, its all just pointers (in this case at least), so i should be able to use OntAps Powershell module and "tell NetApp" to copy it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find the correct cmd or using a wrong syntax&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;Copy-NcHostFile&lt;/P&gt;&lt;P&gt;Copy-NaHostFile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have tried to get anywhere with&amp;nbsp;&lt;/P&gt;&lt;P&gt;get-ncfile&lt;/P&gt;&lt;P&gt;get-nccifsshare&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i just can't get anything going other than retrieving some info about the shares and the CIFS, but nothing which will list files or even copy a file or an entire subfolder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;am I missing something, is there a way to script this? I like to script this because this will likely come up more often with different folders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks everybody for your input and help!&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 09:49:36 GMT</pubDate>
    <dc:creator>Gunnar64</dc:creator>
    <dc:date>2025-06-04T09:49:36Z</dc:date>
    <item>
      <title>copy files from one CIFS share to another...the NetApp way</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/copy-files-from-one-CIFS-share-to-another-the-NetApp-way/m-p/443969#M9858</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am banging my head against the wall and can't find the answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 CIFS and want to copy files from one CIFS subfolder to a different CIFS subfolder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normally I just go to windows file explorer and copy, or even use RoboCopy, Powershell...whatever&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my problems: can't really do that, the 2 CIFS are in 2 different vLANs, not visible to each other, and the we are talking 1.5 TB with about 4 mil files&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, considering NetApps file system WAFL, its all just pointers (in this case at least), so i should be able to use OntAps Powershell module and "tell NetApp" to copy it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find the correct cmd or using a wrong syntax&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;Copy-NcHostFile&lt;/P&gt;&lt;P&gt;Copy-NaHostFile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have tried to get anywhere with&amp;nbsp;&lt;/P&gt;&lt;P&gt;get-ncfile&lt;/P&gt;&lt;P&gt;get-nccifsshare&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i just can't get anything going other than retrieving some info about the shares and the CIFS, but nothing which will list files or even copy a file or an entire subfolder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;am I missing something, is there a way to script this? I like to script this because this will likely come up more often with different folders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks everybody for your input and help!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:49:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/copy-files-from-one-CIFS-share-to-another-the-NetApp-way/m-p/443969#M9858</guid>
      <dc:creator>Gunnar64</dc:creator>
      <dc:date>2025-06-04T09:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: copy files from one CIFS share to another...the NetApp way</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/copy-files-from-one-CIFS-share-to-another-the-NetApp-way/m-p/443972#M9859</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just an idea to consider...but have you thought about taking a flexclone or volume copy of the source volume (removing the data that is not required in it then moving the directory containing the files you want to copy to the root of the volume) then mounting the cloned\copied volume into the junction path within the destination file system? That would spare you from having to copy millions of files. Hope that gives you some ideas. Taking a flexclone would enable you to test it out without having to copy any data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternately NDMP copy might be an option for you too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 05:00:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/copy-files-from-one-CIFS-share-to-another-the-NetApp-way/m-p/443972#M9859</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2023-05-03T05:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: copy files from one CIFS share to another...the NetApp way</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/copy-files-from-one-CIFS-share-to-another-the-NetApp-way/m-p/444001#M9861</link>
      <description>&lt;P&gt;Hi Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;FlexClone: I have not worked with that, so i don't have a lot of knowledge here. I can not touch, change the source as it is actively being used, i will have to read up on FlecxClone to see if I am understanding you correct.&lt;/P&gt;&lt;P&gt;Also, the data is in a subfolder of a share on a Volume. Your description sounds a little like FlexClone would copy the entire volume - that would be too much&lt;/P&gt;&lt;P&gt;NDMP copy: question here is.... does it copy through a client?&lt;/P&gt;&lt;P&gt;NetApp -&amp;gt; client -&amp;gt; NetApp (that would mean 1.5 TB will have to travel through the network)&lt;/P&gt;&lt;P&gt;Rather than just add records in the WAFL system&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I on the correct path with my thinking, or way off :-)?&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 15:23:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/copy-files-from-one-CIFS-share-to-another-the-NetApp-way/m-p/444001#M9861</guid>
      <dc:creator>Gunnar64</dc:creator>
      <dc:date>2023-05-03T15:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: copy files from one CIFS share to another...the NetApp way</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/copy-files-from-one-CIFS-share-to-another-the-NetApp-way/m-p/444016#M9862</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue with using FlexClone in this case is it's a space efficient point in time of the entire volume (not just a sub directory). If your data is actively being used and you have a high rate of change you would need a method to sync&amp;nbsp; the changes (and as you've stated you don't have access between the source and destination vservers). Is the destination vserver on the same cluster as the source vserver? It sounds like NDMP copy might be better option for you as it can offload the copy process to the ONTAP storage system and can be used to target directories in a volume.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="https://docs.netapp.com/us-en/ontap/tape-backup/transfer-data-ndmpcopy-task.html" href="https://docs.netapp.com/us-en/ontap/tape-backup/transfer-data-ndmpcopy-task.html" target="_blank" rel="noopener"&gt;https://docs.netapp.com/us-en/ontap/tape-backup/transfer-data-ndmpcopy-task.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 01:22:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/copy-files-from-one-CIFS-share-to-another-the-NetApp-way/m-p/444016#M9862</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2023-05-04T01:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: copy files from one CIFS share to another...the NetApp way</title>
      <link>https://community.netapp.com/t5/Network-and-Storage-Protocols/copy-files-from-one-CIFS-share-to-another-the-NetApp-way/m-p/444022#M9866</link>
      <description>&lt;P&gt;Agree with Matt.&amp;nbsp;Considering your current situation, you should try ndmpcopy. It will transfer&lt;STRONG&gt; locally&lt;/STRONG&gt; on the FILER and &lt;STRONG&gt;will not involve&lt;/STRONG&gt; another client and/or network.&lt;BR /&gt;&lt;A href="https://kb.netapp.com/onprem/ontap/dp/NDMP/How_to_run_ndmpcopy_in_ONTAP" target="_blank"&gt;https://kb.netapp.com/onprem/ontap/dp/NDMP/How_to_run_ndmpcopy_in_ONTAP&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 06:55:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Network-and-Storage-Protocols/copy-files-from-one-CIFS-share-to-another-the-NetApp-way/m-p/444022#M9866</guid>
      <dc:creator>Ontapforrum</dc:creator>
      <dc:date>2023-05-04T06:55:00Z</dc:date>
    </item>
  </channel>
</rss>

