Trying to use RCLONE to copy the content of a container in 1 storage account to the same container name in a 2nd storage account. I get the error: nothing to do as source and destination are the same.
I think you’ll need to make a different remote for each one - the detection for source and destination being the same doesn’t take into the --azureblob-sas-url. Note also that that flag will apply to both the :azureblob: and the other will be ignored which probably isn’t what you wanted.
hi NCW, just tested by using a different container as the target (and new SAS url). It then starts complaining about the container name in the SAS URL not being the same so it does look like that 2nd --azureblob-sas-url is ignored.
Yes i’m pretty sure that the second --azureblob-sas-url will be ignored. Ideally the flag library rclone uses would warn about this. I did make an issue about it a while back.
Ok I tried to a smaller source container (26315 blobs) and it works
I wonder if rclone try to list / check all the blobs before doing the copy and this process takes a long time if there is millions of files ?
yes I have 81 millions of files in the source directory and no files in the target
I guess the list take some times since it fetch 5000 files that's why I don't see any display
It would be great if the copy start at the first fetch
millions of files in a single directory is rclone's weak spot. It needs to read the whole directory in first so it can sync the source and destination. That is going to take a lot of memory too.