The bat job #1
1.Copy file from d:\backup to g:\backup folder or Move file from d:\backup to g:\backup folder
robocopy e:\Backup f:\Backup /e (For Copy file)
robocopy e:\Backup\ f:\Backup\ /MOV (For Move file - delete from source after copying)
The bat job #2
2. Delete files more than 15 day
forfiles /p "f:\backup" /s /c "cmd /c if @isdir==FALSE echo del @file & del @file" /d -15
No comments:
Post a Comment