Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Coping backup files from one location to another location of a particular date

$
0
0

Hi,

I have a folder contains last 5 days backup, I'm using the below command for copying 

use master

EXECUTE [dbo].[xp_cmdshell] 'Copy C:\commandTestCopy\*.BAK C:\commandTestPaste','NO_OUTPUT';

The command works fine for copying all files in the folder. Is there any condition to copy only one day or the present backups to other location.

Thanks,


From Harish


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>