diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

I agree to have my personal information transfered to MailChimp (more information)


Data Protection Manager (DPM): Using Pre-backup Or Post-backup Script to Reset Archive Bit

Here’s a good tip you might find handy. Say you’ve a legacy app or some other need that requires the archive bit to be reset for data which’s being backed up. Given the fact that DPM doesn’t use Archive bit but instead uses USN Change journal you’ll have to accomplish this using a Pre-Backup or Post-Backup script. In following example, we use a Post-Backup script to set Archive bit on all the files in C:\DataDirectory recursively after backup is done:

  1. Edit “%programfiles%\Microsoft Data Protection Manager\DPM\Scripting\ScriptingConfig.xml” to have following contents on Protected Server:

    < ?xml version="1.0" encoding="utf-8"?> 

  2. Create a script in C:\SetAcrhiveBit.cmd locally on the Protected Server to have following contents:

    cd /d C:\DataDirectory 
    attrib  /S  +A      *

That’s it!


Share This Story, Choose Your Platform!

Get Latest News

Subscribe to Digital News Hub

Get our daily newsletter about the latest news in the industry.
First Name
Last Name
Email address
Secure and Spam free...