Views:

Summary

Mapped drives in Windows 2012R2 or higher cannot be selected to be backed up because they are not displayed in the DPX backup window.

 

Symptoms

Mapped drives in Windows 2012R2 or higher  are not displayed in the DPX backup window.

 

Resolution

Microsoft changed security as it relates to mapped drives in Windows. The implication is that mapped drives are now configurable on a per-user basis as opposed to a per-server basis as in the past. Therefore, mapped drives in most cases won't be detected by DPX when it browses the disk for backup purposes.

One workaround is to map the drive(s) using a DPX pre-script. Using this method, the user that cmagent is running as will map the drive and the drive will then be visible through the backup screen and can therefore be selected for backups. A postscript can then remove the mapping, if needed, through a DPX post-script.

1. Define a pre-script (map.bat file for example) that maps the drive(s) that contains:

net useDrive-letter: \\Computer-name\Share-nameUSER: DomainName\UserName Password

Examples:

To assign drive n: to the c$ share on the w2k3-server server, where the administrator's account is in the domain1 domain, type:

net usen: \\w2k3-server\c$ /USER:domain1\administrator mypassword

 

To assign drive m: to the d$ share on the IP address 10.10.10.10, where the administrator's account is in the myworkgroup workgroup, type:

net usem: \\10.10.10.10\d$ /USER:myworkgroup\administrator mypassword

 

To assign drive O: to the home share on the Filer myfiler, where the administrator's account is in the myfiler Filer, type:

net useO: \\myfiler\home /USER:myfiler\administrator mypassword

 

2. Run a "dummy" backup job with the Source Options set as below to make the mapped drives visible under DPX:

Pre-Job Script: map.bat@hostname

Skip NFS Volumes: No

Back Up Content of Mounted Drive: Yes

Note: The scripts (map.bat for example) should reside in the DPX\sched\scripts directory on the node where the drive is mapped.

 

3. Configure and run the backup job with the shared drives selected.

 

4. (Optional) The mapped drives created using the procedure above must be disconnected through a DPX postscript (unmap.bat for example) that includes:

net useDrive-letter: /delete

Example:

net usen: /delete

This can be accomplished by either referencing the Post-Script file through Backup Source Option "Post-backup Script" when running the backup job (Step 3) or a separate "dummy" backup job when the mapped drives no longer needed.

Note: The scripts (unmap.bat for example) should reside in the  DPX\sched\scripts directory on the node where the drive is mapped.