Back Up a Windows Mapped Drive
Overview
DFW DataVault does not support backing up mapped drives on Windows.
DFW DataVault runs as a Windows service and therefore cannot access drives mounted by a user. This is an OS level restriction built into Windows.
If you would like to back up a mapped drive on Windows, this article describes an unofficial method for doing so. It is not supported by DFW DataVault so proceed at your own risk.
Before You Begin
This method for backing up a mapped drive requires an advanced level of knowledge with Windows. It is not for beginners. If you do not feel comfortable using a command-line, you should stop now.
DFW DataVault support is not able to respond to questions about Windows mapped drives.
How It Works
Create a batch file to mount your drive
The key element of the net use command is the /USER:ip\username syntax. Without the IP (or desktop name if Windows) it does not work.
The raw command is this (replace contents inside angle brackets and remove the angle brackets):
net use S: \\<device_ip_address>\<share_name> /USER:<device_ip_address>\<username> <password> C:\tmp\mount.log 2>&1 2>&1
Sample File Contents:
echo %date% %time% : "%cd%\mount.bat" >> C:\tmp\mount.log >&1 2>&1 net use S: \\10.10.42.50\plindqui /USER:10.10.42.50\plindqui <password> >> C:\tmp\mount.log 2>&1 2>&1
Note: If you create your batch file in Notepad, make sure you select All Files from the Save as Type dropdown. Otherwise, Windows will think your batch file is a regular text file.
Create a task to run the batch file as the SYSTEM user
On Windows XP
Now that you have your bat file, creating the task on XP is easy.
- Go to C:\Windows\tasks > Add Scheduled Task
- Browse to your .bat
- Choose Perform task When I log on
- User name of SYSTEM
- Finish
When you log in with your Owner account you can see a network mapped drive that you do not have permission to read. It appears as disconnected. The “disconnected” drive is the mapping DFW DataVault will be using.
In the DFW DataVault destination / source file browser:
(optional) Of course, you can map it with your Owner account, so you can interact with the files. In this case the two mappings are both valid:
On Vista
For Vista, the batch file remains the same, but the steps to create a scheduled task are different.
- Open Start > All Programs > Accessories > System Tools > Task Scheduler
- Under General:
- Enter a name and a description
- Log out and log in to test the new task.