Backing up to a network location using dbbackup.exe

I am trying to use the dbbackup.exe utility included with Sybase SQL Anywhere 9 to back up a few databases to a network location nightly.  The problem I'm having is that dbbackup only accepts local paths for its backup target.  I'd like to backup directly across the network to a shared drive.  I have the folder I want to backup to (//servername/backup) mapped as Y:.  Within the batch file I'm using to do this backup I have an entry for each database like the following:

c:\progra~1\sybase\sqlany~1\win32\dbbackup.exe -c "dsn=example" y:\backup\example.db -y

The problem is obviously that the scheduled task does not see the mapped network drive.  The only option I can think of is backing up the file locally then copying it across the network and deleting the local backup, but as I said I'd much rather do it directly to the drive if possible.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You are correct; the batch task is not able to use the mapped network drive.  The problem is usually with the connection and/or authentication information.

Sybase is not the problem because it cannot tell the different between a local and a mapped drive.

You may have to script the mapping of the network drive as well so that it all happens together.  Take a look at some of the Windows script enhancements like PowerScript (there are others as well) that will give you enough control you can map the drive, check the status, run the backup, and unmap the drive.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Sybase Database

From novice to tech pro — start learning today.