Is there a way to set the backup file name in NTBackup to the current date so that if you schedule the job to run every week it will create a unique file name each time? Thanks for your help.
I worked hard on it
I don't think you can do that with NTBackup but...
You can make a task in task scheduler who execute this batch file right after your backup:
REM Start of batch file
set thestart=copy yourbackup.dat "%DATE%.dat
set theend=" >> t1.cmd"
set all=%thestart%%theend%
echo %all% > t1.cmd
t1.cmd
REM End of batch file
Thanks for your response, MontrealSoft. I am getting a message that the system cannot find the path specified and I am guessing it is because of the format that the %date% is returned. 'Fri 04/04/2003' Is there any way to change this format? Thanks for your help.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.