Backing up to a network location using dbbackup.exe

Posted on 2008-11-18
Last Modified: 2012-05-05
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.
Question by:Kavalleri
    1 Comment
    LVL 19

    Accepted Solution

    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.


    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Suggested Solutions

    We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
    Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now