• 0

Mass copy of data for several folders.


Question

I need to copy a large number of files that are stored in a single parent location but in their own folders to a single folder on another server (permissions are no issue). We have a CAD drawing register On a Spreadsheet and all the drawing folders are in a single parent location but in their own folders depending upon their design. Example, the parent folder is \\server\groupdata\shared\drawingregister and the files are in a folder, 0001 and the file is 0001.dwg. We are moving this to a cloud solution with a database backend and need to migrate the files to this server.

 

I have used - for /f %I in (images.txt) do Robocopy “Location” “Destination” %I - before with a list of images being listed in the text file and this works fine if all the images are stored in the same folder, but I cant get it to work in this manner. I have tried to modify the text file so each line has \0001\0001.dwg but nothig is copying. Is it possible to use robocopy like this or will I need to use an application to do this?

4 answers to this question

Recommended Posts

  • 0

so you are trying to copy a specific file type with robocopy?  

 

try something like

 

robocopy source destination *.dwg /E /J /SEC /mt:20 /r:1 /log:%userprofile%\desktop\robocopy.log

 

This will copy all dwg files 

/e = all subdirectories including empty ones implies /s

/J = unbuffered I/O, best for large files

/SEC = copies all security settings

/mt:20 = mutli threaded copy, 20 files at a time (may have to adjust this, it likes 1 per core best)

/r:1 = 1 retry before failing

/log:%userprofile%\desktop\robocopy.log creating a log file somewhere (this should utilize your desktop folder to store the log file, can change as needed) so that /MT works as fast as it can.

 

 

robocopy /? can give you the official meanings for each switch, I put them into my own words.

  • 0

After reading it again I may understand your question a bit better...I did a search and found this solution:

 

@echo off
set source="R:\Contracts"
set destination="R:\Contracts\Sites"

::Not sure if this is needed
::It guarantees you have a canonical path (standard form)
for %%F in (%destination%) do set destination="%%~fF"

for /r %source% %%F in (.) do if "%%~fF" neq %destination% ROBOCOPY "%%F" %destination% *.srt *.pdf *.mp4 *.jpg /COPYALL /R:0

 

  • 0

You could also try using DFS... i use it extensively to keep data replicated between Azure, Colorado, UK, & Massachusetts ... works pretty well, you can also set throttles, so you dont hammer the bandwidth!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • OK, back to normal now! Ozzy Osbourne - Flying High Again (Official Music Video)  
    • The actual download size is ~130–180 MB, not 100 MB.
    • Big change of pace for me! Gunnar & the Grizzly Boys - Standard American (Official)  
    • draw.io Desktop 30.2.4 by Razvan Serea draw.io desktop is a downloadable security-first diagramming application that runs on Windows, MacOS and Linux. Creating diagrams in the desktop app doesn’t need an internet connection. This is useful when you are disconnected or when you must create diagrams in a highly secure environment, where data protection is of the utmost importance. When you use the draw.io desktop app, your diagrams will be stored on your local device. Because this is a stand-alone application, also designed to run offline, there are no interfaces to cloud storage platforms available. Of course, you can still store your diagrams in folders that are synchronised to your cloud storage if you wish. Easy-to-use diagram editor The draw.io apps work just like the office and drawing tools you are used to using. Drag and drop shapes from the shape libraries and drag to draw connectors between them. Drag connectors to add waypoints and set a precise shape and position, or let them reroute automatically. Double click and start typing to add a label to anything. Create tables and swimlane flows with a familiar tool. Style shapes and connectors with customisable palettes, sketch options, fonts and text formatting tools. Search for shapes, including in open-source icon libraries. Use our vast libraries of shapes and templates, organised into logical categories, to create a range of diagrams and infographics. Generate diagrams from text descriptions using our smart templates. Diagram faster with keyboard shortcuts. draw.io Desktop 30.2.4 changelog: Uses electron 42.4.1 Updates to draw.io core 30.2.4. Download: draw.io 64-bit | Standalone ~100.0 MB (Open Source) Download: draw.io 32-bit | ARM64 | ARM64 Standalone Links: draw.io Home Page | Project page @GitHub | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Popular Contributors

    1. 1
      +primortal
      590
    2. 2
      +Edouard
      190
    3. 3
      PsYcHoKiLLa
      80
    4. 4
      Michael Scrip
      77
    5. 5
      Steven P.
      73
  • Tell a friend

    Love Neowin? Tell a friend!