Link to home
Start Free TrialLog in
Avatar of ohemaa
ohemaa

asked on

Job schedules move files

I have to schedule the following as jobs

1.backup Db Customer to \\serverA\backups\customercomplete.bak
2.move the file to another server    \\serverA\backups\customercomplete.bak To \\serverb\backups\customercomplete.bak
Step 2
Move  "\\serverA\backups\customercomplete.bak "  "\\serverb\backups\customercomplete.bak"

Job schedule :
Step one is done
I used move to accomplish step 2.  No luck
Avatar of Yveau
Yveau
Flag of Netherlands image

What is the error ?
Enough permissions for the SQL Server Agent account, as that is the account that performs your jobs for you ?

Hope this helps ...
As Yveau says...
The account that is used to run the Windows Service - Server SQL Server Agent must have write permissions to the backups folder on server B. IF using move then it also needs to have delete (or modify?) permissions on the backup folder on server A.
ASKER CERTIFIED SOLUTION
Avatar of D B
D B
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The above would assume that the account running SQL Agent has the necessary permissions to run xp_cmdshell
Avatar of ohemaa
ohemaa

ASKER

I get the WARNING: The following job steps cannot be reached with the current job step flow logic.
 [2] Move File to ServerB
Is this the intended behavior?
NO, is it two separate job steps (backup, then move. If so, you'll need to check your workflow and make sure that after successful completiong of step 1, you execute the next step.