English 中文(简体)
Database Backup Robocopy
原标题:

I have job that runs every 15 minutes that uses robocopy to copy a backup of the tranaction logs to a different server. This job is failing USER has full access rights to both home folder and the destination folder.

JOB SQL:

robocopy "e:BackupSQL02$PROD" "SERVERDRIVE$prodsqlackup" /MIR /E /Z /NS /NFL /NDL /NJH /NP /R:10 /W:30 if %errorlevel% LSS 8 set errorlevel=0

Error Log:

Date 22/06/2010 09:05:00 Log Job History (Sync Production backup to app040)

Step ID 1 Server NDAHHSQL02PRODUCTION Job Name Sync Production backup to app040 Step Name robocopy production Duration 00:00:00 Sql Severity 0 Sql Message ID 0 Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0

Message Executed as user: DOMAINUSER. 2010/06/22 09:05:00

ERROR 5 (0x00000005) Getting File System Type of Destination \SERVERDRIVE$prodsqlackup Access is denied.

2010/06/22 09:05:00 ERROR 5 (0x00000005) Creating Destination Directory \SERVERDRIVE$prodsqlackup Access is denied. Process Exit Code 16. The step failed.

最佳回答

I have solved the issue Although the folder had permissions for the account to copy files accross it did not have share permissions set on the root drive.

Link to share permissions tutorial

问题回答

The user does not have access to write the backup file to SERVERDRIVE$prodsqlackup.

  • Should it read \SERVER?
  • You could use NET USE to first mount the server location as a drive and then write to it.
  • You could test with some small file instead of a backup




相关问题
Backing up my database is taking too long

On a windows mobile unit, the software I m working on relies on a sdf file as it s database. The platform that the software is targeted towards is "less than optimal" and hard resets every once and a ...

Cognos LAE Backup Automation (Batch File?)

Within Cognos 7.4 security.. one would create an LAE file to export all their users... directions here... http://www.cognos-install.co.uk/articles/backups/access_manager_export_to_lae.asp Now you ...

backup SQL Server 2005 database without data

I have one stored procedure to backup the database. It will backup metadata as well as data. Is there any option to back up the database with out data. ie, back up only the schema (Empty tables). I ...

SQL Server 2008 Auto Backup

We want to have our test servers databases updated from our production server databases on a nightly basis to ensure we re developing on the most recent data. We, however, want to ensure that any fn, ...

mysql dump stops when a row is updated

When i try to get a dump of a mysql database, the dump stops when a row in it is updated. How can i prevent that? I already tried following options with no result: -f (forces continu even when error)...

热门标签