The v16 docs give a sample command line of:

dbbackup -l path-on-secondary-computer\filename.log -c "connection-string"

but when I try this format I get a usage error. I find that I have to put the folder for the live log file at the end of the command line:

dbbackup -l path-on-secondary-computer\filename.log -c "connection-string" path-on-secondary-computer

Oddly, if I do something like this

dbbackup -l c:\temp\MyLogFile.log  -c "ENG=SA16;DBN=v16test;UID=DBA;PWD=****" c:\nottemp

it works fine despite the contradictory paths - putting the file MyLogFile.log in the folder c:\nottemp

v16.0.0.2018

asked 07 Jan '16, 12:13

Justin%20Willey's gravatar image

Justin Willey
6.8k111144213
accept rate: 20%

edited 07 Jan '16, 12:13


The docs specify

   dbbackup -l filename ... target-directory

so it appears to be ignoring your first directory

   dbbackup -l ignore-this-directory\filename ... target-directory

This wouldn't be the first time SQL Anywhere has ignored extra "noise" :)

permanent link

answered 07 Jan '16, 12:55

Breck%20Carter's gravatar image

Breck Carter
26.9k437609883
accept rate: 21%

Thanks Breck, I should have been clearer :) My (minor) moan is that the docs are inconsistent:

http://dcx.sybase.com/index.html#sa160/en/dbadmin/dbbackup.html

says

dbbackup -l filename ... target-directory

but

http://dcx.sybase.com/index.html#sa160/en/dbadmin/da-backup-dbs-4978684.html

says

dbbackup -l path-on-secondary-computer\filename.log -c "connection-string"
(07 Jan '16, 13:04) Justin Willey
Replies hidden

Many of the examples have never been tested, alas.

(07 Jan '16, 15:31) Breck Carter

@Graham... the second answer appeared when I edited the first one.

permanent link

answered 07 Jan '16, 12:56

Breck%20Carter's gravatar image

Breck Carter
26.9k437609883
accept rate: 21%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×15
×8

question asked: 07 Jan '16, 12:13

question was seen: 386 times

last updated: 07 Jan '16, 15:31