Jump to content

Robocopy: can MIR or PURGE delete files from Source ?


Guest franklin-xy

Recommended Posts

Guest franklin-xy

Windows 7 Home Premium 64-bit

This tutorial says that the /MIR flag may cause Robocopy to delete files on the Source:

http://www.sevenforums.com/tutorials/187346-robocopy-create-backup-script.html

Is that true? If it is true, presumably the same warning should apply to the /PURGE option?

Here's the relevant quote from that article:

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.

If in doubt, do not use the /MIR option, but be aware that backups will take longer.

I want to use Robocopy to do regular backups about 400 GB of media files. I want the external HD to replicate what's in my media folder on the internal HD. So, anything changed or added to the Source should be copied to the Destination, anything deleted from Source should be deleted from Destination. I do not want Robocopy to delete anything from Source.

The backup will be run every few days, as media files on Source may be edited, added, deleted by me.

 

Continue reading...

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...