0

I have a large set of data that is being copied to a directory on a server, around 2 tb. I would like to start moving this data(Ctrl-X) from server A to server B to save time and space on server A. Can I perform this move operation while a copy is active? I need the data to continue copying while the move is happening and hopefully move any new data that is present in the directory. I am using RoboCopy to perform the copy.

  • 2
    Robocopy can do that. Just use the monitoring function and have it continue to grab new files from the directory. make sure you do a multi-threaded copy and configure a reasonable retry interval. Files that are currently open (copying) will cause robocopy to retry for a period of time. Multithreaded copy will allow it to continue copying while it is waiting on another thread. – Appleoddity Jul 9 at 14:24
  • 2
    We need to know the parameters you are using for robocopy. @Appleoddity: The problem is that with the wrong parameters, the robocopy that is copying to the folder might decide to re-copy the moved-out files, creating a vicious loop. – harrymc Jul 9 at 14:27
  • @harrymc I am using a simple E parameter to copy all directories and sub-directories. I am hopeful that the move will transfer the data already copied over and that robo copy will not attempt to move that data again since it was already copied. If that makes sense. Assuming RoboCopy works in a linear fashion. – davedno Jul 9 at 14:30
  • @Appleoddity This seems like a possible solution. Will the monitor function in conjunction with the multi-threaded copy free up space while doing the move to the other directory? Or will I bloat up two servers instead of streaming that data? – davedno Jul 9 at 14:32
  • 1
    There is the risk of copying partially-copied files, if robocopy does not lock the target file against read while doing the copy, and even so the second robocopy might fail when trying to delete that partially-copied file. I suggest experimenting, but on another computer. – harrymc Jul 9 at 14:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.