hello, I'm performing a migration from an IBM Spectrum storage to NetApp C-Mode using xcp nfs, however the ibm storage has a particularity the snapshots folder is created with the name ".snapshots" and this is causing my copy to slow down.
I tested the scenario using the syntax below: xcp copy -match -match "'/.snapshots/' not in str (x)" <source> <target>
I managed to make the copy without taking the data but the entire folder structure was created.
I tested this is another syntax
xcp copy -match "'snapshots' not in name" <source> <target>
The result was the same created the entire folder structure and did not take the data,
Both scenarios suit me but I would like to try to optimize because the scan of the entire volume snapshot structure at IBM is making xcp slow, and in the end I am obliged to access the destination and delete this folder so as not to confuse the users.
Is there a filter that does not copy this folder, similar to robocopy -XD?
Correct, xcp is copying the ".snapshots" folder that is related to the volume snapshot in IBM Spectrum, with the match syntax I reported, the data is not copied but the entire folder structure is created on the NetApp volume.
In robocopy there is the -XD option that would be able to exclude the ".snapshots" folder from the copy to NetApp, I believe the problem is in the xcp syntax -match but I have not found a solution.
I'm putting a picture of the origin and destination
.snapshot -> default snapshot folder NetApp
.snapshot-> default snapshot folder IBM
The data is not overwritten, as in NetApp the folder is .snapshot and in IBM it is .snapshots
By the documentation xcp already skips the copy of the entire folder with the name .snapshot, however as in the origin the storage keeps the folder with the name .snapshots I need to skip the copy using filters in the parameter -match
I tested the parameters:
xcp copy -match -match "'/.snapshots/' not in str (x)" <source> <target> xcp copy -match "'snapshots' not in name" <source> <target>
However, as seen in the print, the folder is created in NetApp