Solved

Back up database to a network drive in sybase central

Posted on 2004-09-03
2
1,203 Views
Last Modified: 2012-06-21
I am trying to back up my database ( I am using sybase central) using ISQL analyzer , I am not able to back up to a network drive, I have no problem if i back up to the local drive. It is showing this error
ASA Error-697:Error during back up : could not create directory R:\Backup\Friday--No such directory or permission denied.
I am trying to do this from the dba account with full permisiions. Can you help me ?
the event handler has this code
begin
  declare day_of_week varchar(20);
  declare backup_stmt long varchar;
  set day_of_week=ucase(dayname(today(*)));
  set backup_stmt='BACKUP DATABASE DIRECTORY ' || '''R:\\Backup\\' || day_of_week || ''' ';
  if day_of_week <> 'SATURDAY' then
    set backup_stmt=backup_stmt || 'TRANSACTION LOG ONLY'
  else
    set backup_stmt=backup_stmt || 'TRANSACTION LOG TRUNCATE'
  end if;
  execute immediate backup_stmt;
  insert into tblEventLog(EVLOG_szOperator,EVLOG_szOption,EVLOG_szMessage) values('System','Backup','Backup Completed')
end
0
Comment
Question by:Umamahez
2 Comments
 
LVL 14

Accepted Solution

by:
Jan_Franek earned 500 total points
ID: 11975037
Error message: could not create directory R:\Backup\Friday--No such directory or permission denied

means that either the drive R: is not mapped on database server machine, or user sybase (or user that was used to start database server engine) has no rights on R:\Backup\, or (most probably) you have both these problems.

You can try to use full network path (like \\computername\Backup\) instead of mapped drive letter - this should address the first problem. But even with this you can still have problem with permissions, particularly if you run your database server as Windows service under System Account. I'm not sure about permissions of System Account - try to allow full access to destination computer for everyone. If it will not help, try to use other account to start the database server service.
0
 

Author Comment

by:Umamahez
ID: 11976412
thank u it worked...change services settings
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hyena v12.2 is now available for downloading and is available in English, French, German and Spanish versions.
We have come a long way with backup and data protection — from backing up to floppies, external drives, CDs, Blu-ray, flash drives, SSD drives, and now to the cloud.
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 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

9 Experts available now in Live!

Get 1:1 Help Now