Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Migrate large folder structure/files

$
0
0

I need to migrate large folder structures.

The target folder structure is not equal to the source structure.

For one single folder (and sub-folders) I have created a csv file which I use as input file for powershell.

 

Within the powershell script I use robocopy to copy all content from the source folders (listed in the CSV) to the target folders (listed in the CSV).

 

Although I really need to make sure all content (read: files) is copied to the new structure.

 

How and which checks can I do to make sure all content is copied ?

 

For now I only have a check which counts the total number of files on the source and destination location, but the numbers aren’t equal, so I need to know which files are missing.

 

 

Some more intelligent checks should be build in, but I wouldn’t know exactly how.

 

I would like to compare all source files with all target files, and generate a file which show all mismatches.

Since the source and destination folders are not equal I cannot check the entire paths.

 

Anyone a suggestion how to achieve this ?

 

The total amount of folders which need to be migrated is several hundred of thousands


Viewing all articles
Browse latest Browse all 6937

Latest Images

Trending Articles



Latest Images