Forum Discussion

Perez's avatar
Perez
Iron Contributor
Feb 05, 2025
Solved

Robocopy Don't save

I ask those who use this Microsoft utility, if there is a way to not delete a previously saved file, if currently in use.

In practice I have been using this utility for many years, but among all its parameters, I have never found the one that suits me.

In practice, if I opened the Outlook program, the pst file is blocked, too bad that using /MIR the previously saved file is deleted and replaced with .tmp that are unusable.

Does anyone have the solution?

  • About those temporary files (tmp files): when /MIR is used, Robocopy will create a temporary file with the same name but with a .tmp suffix. To avoid this, you can simply rename the file before running the /MIR command. However, this might not be the best solution if you need to preserve the original file name.

3 Replies

  • Stephennen's avatar
    Stephennen
    Bronze Contributor

    If you're okay with excluding files based on their last modified date, you can specify a maximum or minimum age for copied files. However, this approach may not suit your needs if you're not looking to filter based on dates.

  • If you need to back up while Outlook is running, consider using a backup solution that employs Volume Shadow Copy Service (VSS). However, this might require additional software that supports VSS usage.

  • Swawn's avatar
    Swawn
    Iron Contributor

    About those temporary files (tmp files): when /MIR is used, Robocopy will create a temporary file with the same name but with a .tmp suffix. To avoid this, you can simply rename the file before running the /MIR command. However, this might not be the best solution if you need to preserve the original file name.

Resources