How to Recover Data Deleted by Robocopy /MIR Command

Abby Haines Updated on Apr 10, 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, externally connected USB flash drive or micro SD card by scanning all over its storage unit, and the overall process of searching for and finding the deleted items is done as follows.

Step 1. Specify a location: 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.

select a location and click scan

Step 2. Scan the entire storage device: it's a critical step for EaseUS file recovery software to search for lost data as much as possible. Soon you should see a quick scan result called "Deleted files" appears. That's where all deleted files and folders were kept.

scan deleted files

Step 3. Preview files and recover: in the "Deleted files", find the wanted files by following its file paths. Or, you can use the "Filter" feature to locate the abandoned files quickly. Double-click the data allows you to preview its entirety.

At last, choose all target files and click the "Recover" button to save them to a secure location or device. Click "OK" to complete the process.

select files and click recover

Never forget to check all the scan results in each tab for deleted files. The "Extra Files" part is very hopeful for the recovery of files that have lost names and file paths after deletion.

 
 

100% of people found this article helful.

 

Frequently Asked Qusetions

1. 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.

2. 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.

3. 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.

4. 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.

5. 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.