Discussion Locked

NTBackup problem

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi

I have batch file to run in night

"net use x: /delete /yes
net use y: /delete /yes

net use x: \\Intra\D$
net use y: \\Intra\E$

ntbackup backup x: y: /v /d "Backup of Intra" /hc:on /t normal
/l "E:\backup\Intra\backup.log"

ntbackup eject

net use x: /Delete /yes
net use y: /Delete /yes"

I Never get log file, I was wondering if you could find out what is missout in this batch file.

I also wnats to back up d and e drive in different folder(e.g D drive goes to D folder and E drive goes to E folder in tape drive), is it possible to do so? if yes how do I do in ntbackup?

Thank you

6 replies

by rabbit_runner

Question: do you know that you are getting a backup, even without the log file? I am assuming that you are Not. You need to add a parameter to the end of your line like this....
ntbackup backup x: y: /v /d "Backup of Intra" /hc:on /t normal
/l "E:\backup\Intra\backup.log" /tape:0

Also, I am not certain that you need the quotation marks " " around your backup log filename. It has been a while and since I have done this and you might try doing it without the quotation marks.

Best of luck

by ashok_g

Yes I am getting data backed up and if we didn't assign tape(as you did /tape:0) ntbackup should take first available tape drive isn't it? (This was my understanding)

by mckaytech

Your syntax is a little different than the syntax I use. I use a different line for each drive to be backed up and they appear as separate sets on the tape.

Here is the batch file I run:
ntbackup backup c:\ /b /hc:on /dScheduledBackupc /ld:\logs\backup\backup.log /e /tape:0
ntbackup backup d:\ /v /hc:on /dScheduledBackupd /ld:\logs\backup\backup.log /e /tape:0
ntbackup backup m:\ /v /hc:on /dScheduledBackupm /ld:\logs\backup\backup.log /e /tape:0
ntbackup backup n:\ /v /hc:on /dScheduledBackupn /ld:\logs\backup\backup.log /e /tape:0

(I hope that comes out better than it looks right now - from ntbackup to /tape:0 should be one line in each case)

paul

by mckaytech

Something got lost in the translation - there should be a '/a' right after the '/v' in the second, third and fourth lines.

paul

This discussion is closed to new replies.