Link to home
Start Free TrialLog in
Avatar of sameh_mhumaid
sameh_mhumaidFlag for Palestine, State of

asked on

NTbackup not starting job

I'm trying to run the following command after ameding the file name to include the date with no luck
any ideas?

C:\WINDOWS\system32\ntbackup.exe backup "@C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\usersjob.bks" /n "usersbackup.bkf created 21/10/2010 at 10:49 AM" /d "Set created 21/10/2010 at 10:49 AM" /v:yes /r:no /rs:no /hc:off /m normal /j "usersjob" /l:s /f "G:\PNSP\Users\usersbackup %date:/=-.%.bkf"
Avatar of Dave Alford
Dave Alford
Flag of United Kingdom of Great Britain and Northern Ireland image

it'll be trying to use %date%:/= as text in the filename as you've enclosed in quotes so it's a literal string
Avatar of sameh_mhumaid

ASKER

I should remove the quotes?
Avatar of Krzysztof Pytko
I would suggest reading this article with setting up NT Backup in command-line that using syntax from Task Scheduler job ;)

http://support.microsoft.com/kb/814583

Should solve your problem :)

Regards,
Krzysztof
ASKER CERTIFIED SOLUTION
Avatar of DoubleHead
DoubleHead

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial