Hello Friends,
I have created backup database jobs in sql server 2012, step 1 takes backup for databases which is running fine.
For example:
BACKUP DATABASE [master] TO DISK = N'E:\Backups\ma
BACKUP DATABASE [msdb] TO DISK = N'E:\Backups\ms
In job step 2, I wrote code to copy backup to share drive as below:
copy E:\Backups\mast
copy E:\Backups\msdb
The problem is job getting run successfully but in step 2, only copying the 1 file which listed 1st in step 2 and it is not copying all the files.
In step 2 I want to copy all backup files which was in step 1. Is there a way to make this is working without creating more steps?
please advise.
Thank you in advance.