I am creating file entities with migrate using drush. Image files are being copied down from a remote server. I tried
If I run the migration with --update it duplicates the files, not replacing existing ones.
drush mi DAProductImages --limit="10 items" --update
When I run this first time it creates the files. Second time it adds _0 to the filenames and duplicates the files. If I rollback after first migration the files are being removed. When rolling back after the second migration only files of last batch get removed. I also tried with:
How can I make it so that I will not end up with duplicates? I have about 30000 images so I cannot afford that.