> How to > Data Recovery > How to Recover Data Deleted by Robocopy /MIR Command

How to Recover Data Deleted by Robocopy /MIR Command

Updated on Apr 10, 2019 by Abby Haines to Data Recovery

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.

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.