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