How to Recover Deleted Data by Robocopy/MIR Command

Abby Haines updated on Aug 06, 2019 to Data Recovery | How-to Articles

Summary

If you mistakenly delete some important files using Robocopy command, you still have a chance to restore them. EaseUS Data Recovery Wizard can recover files deleted by Robocopy /MIR command.

PAGE CONTENT:
How Microsoft's Robocopy Syntax Copies/Deletes Files
Recover Data Deleted by Robocopy /MIR Command

Robocopy (Robust File Copy) is a command-line file copy utility that comes with Windows Vista / Windows 2008 or newer. Until Vista, Robocopy was a part of Windows Resource Kit Tools. Unlike normal copy commands, Robocopy is designed for a reliable copy or mirroring while maintaining the permissions, attributes, owner information, timestamps and properties of the objects copied.

How Microsoft's Robocopy Syntax Copies/Deletes Files

1. To copy the contents of C:\UserFolder to C:\FolderBackup:

Robocopy C:\UserFolder C:\FolderBackup

2. To copy all contents including empty directories of source folder to destination folder:

Robocopy C:\SourceDir C:\DestDir /E

3. List only files larger than 32 Mbytes(33553332 bytes) in size:

Robocopy.exe c:\sourceFolder d:\targetfolder /min:33553332 /l

Note: /l - will list files matching the criteria. if /l is omitted, files matching the criteria will be copied to the target location

4. Move files over 14 days old:

ROBOCOPY C:\SourceFoldern D:\DestinationFolder /move /minage:14

5. Mirror directory excl. deletion:

Robocopy "C:\Folder" "\\Machine2\Folder" /MIR /XD  \\server2\ directory\dir2"

Notice:
Use the /MIR option with caution - it has the ability to delete a file from both the source and destination under certain conditions. This typically occurs if a file/folder in the destination has been deleted, causing ROBOCOPY to mirror the source to the destination. The result is that the same files in the source folder are also deleted. To avoid this situation, never delete any files/folders from the destination - delete them from the source, and then run the backup to mirror the destination to the source.

Recover Data Deleted by Robocopy /MIR Command

If you mistakenly delete some important files using Robocopy/MIR command, you still have a chance to get them back. Robocopy doesn't have any type of "undo" capability. And you cannot restore deleted files from recycle bin. The only thing you can try is to recover deleted files using third-party data recovery software.

EaseUS disk data recovery software is recommended for its powerful data recovery capability. It recovers deleted files and folders on your computer/laptop hard drive, externally connected USB flash drive or micro SD card. No matter how you get your files lost, you can get them back as long as the partition is unharmed physically. Download the powerful software now, and get back data deleted by Robocopy /MIR command.

EaseUS Data Recovery Wizard recovers deleted files and folders on your computer/laptop hard drive, USB flash drive, or micro SD card. It can scan all over its storage unit, and let users preview and restore lost files.

Step 1. Is it a local hard drive disk or a removable storage device from which the files were deleted? Choose the exact file location and then click the "Scan" button to continue.

select a location and click scan

Step 2. Wait for the scan to completes. After the process, you can preview the found files and select what you need. There is no limit in number.

scan deleted files

Step 3. Now, click the "Recover" button to save the restored files to another location rather than the original one. Then, click "OK" to finish the recovery.

select files and click recover
 
 

100% of people found this article helpful.

 

Frequently Asked Questions

1. Why choose EaseUS Data Recovery Wizard?

"EaseUS Data Recovery Wizard is the best we've seen. It's far from perfect, partly because today's advanced disk technology makes data-recovery more difficult than it was with the simpler technology of the past, but it's fast and efficient..."PCMag

"The first thing you'll notice about EaseUS Data Recovery Wizard Pro is that its interface is very clear and uncluttered, with only a small collection of self-explanatory controls. You won't find lots of extra options hidden in a system of hidden menus, either; what you see really is what you get."techradar

"Recover lost files, even after deleting a partition or formatting your drive."Macworld

2. Why cannot I recover 2GB data for free?

It is recommended to check the version installed is Free or Trial because they are different versions.

Trial has data preview function but cannot save any files, while the Free version enables to recover 2 GB files. The default free space is 500 MB and you may share the product on social media to get another 1.5 GB.

3. Why cannot the recovered files be opened?

A file is saved as 2 parts on the storage device: directory info (which is comprised by file name, time stamp and size info, etc.) and data content.

If the files with original file names and folder structures cannot be opened, one possible reason is the corrupted directory info. There is still a chance to recover the data content with the RAW Recovery method in our software.

4. Why isn't it suggested to recover the files back to the original drive?

The storage structure of the lost files would be altered or damaged by any changes on the drive. If you save the recovered files back to the same drive, the original data structures and data content would be corrupted or overwritten, which causes permanent data loss. So you should prepare another disk to save the files.

5. How can I check whether my data is recoverable or not before purchase?

The Free version helps you save 2GB files to better verify the recovery quality of our product before purchase.

6. How long does it take to scan the drive?

It strongly depends on the capacity of your hard drive and the performance of your computer. As reference,most drive recoveries can be completed in around 10 to 12 hours for a 1-TB healthy hard drive in general conditions.

About Data Recovery Wizard

It's super easy to recover 250+ types of files after deletion, disk formatting and virus infection. Click the links and compare the difference of each version.