0

I have .bak files that created by a job on SQL Server every night. I want the .bak file to be copied to another server. I created a job running the command

EXEC xp_cmdshell 'copy "G:\Source\folder\file.bak" "\\destination\Work\folder\"'

but the job creates the a copy of the .bak file on the source machine but in different directory.

Any idea about what I am doing wrong?

Thanks

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Zeze
  • 11
  • 1
  • 5

0 Answers0