Re: NT Backup Command Line



Thank you. This should do the trick. Much appreciated.

Vinny

"Bill Sanderson" wrote:

Thanks - this file is descended from a server which did not have Exchange
installed, and I never learned that trick. (and, in fact, that file is
still on a server which does not have Exchange installed...)

Where I have Exchange, I'm also using SBS backup, and not anxious to change.

"SuperGumby [SBS MVP]" <not@xxxxxxxxxxx> wrote in message
news:u$hcCHrmIHA.2328@xxxxxxxxxxxxxxxxxxxxxxx
BLAT is unnecessary. Just drop the properly formatted message into the
Exchange 'pickup' dir.

The file exclusions can be done in the BKS file used.

eg.
C:\
C:\RECYCLER\ /Exclude
C:\scripts\ /Exclude
C:\spoolerlogs\ /Exclude
C:\sysinternals\ /Exclude
C:\temp\ /Exclude
C:\WUTemp\ /Exclude
C:\WINDOWS\Temp\ /Exclude
C:\WINDOWS\SoftwareDistribution\ /Exclude
SystemState

"Bill Sanderson" <bill_sanderson@xxxxxxxxxxxxxxxxx> wrote in message
news:78FEEE64-53F4-43E3-BF96-A8E7E2C0B156@xxxxxxxxxxxxxxxx
You can't put the exclusions on the command line--you have to use a
created .bks file which you can create using the gui.

Here's a recent example I used--much of it taken from a Microsoft KB
article about how to use ntbackup:

I'm showing you a real-world example in daily use--don't worry about the
excess stuff if you find it confusing--focus on the ntbackup line itself.

This is backing up to an external USB connected drive G, rather than
tape--the ntbackup line would be somewhat different with switches for
tape--I can dig up the tape version if you would find it useful--I've got
it from the previous Windows 2000 server.

---
@echo off
for /f "Tokens=1-4 Delims=/ " %%i in ('date /t') do set
dt=%%i-%%j-%%k-%%l
for /f "Tokens=1" %%i in ('time /t') do set tm=-%%i
set tm=%tm::=-%
set dtt=%dt%%tm%
c:\windows\system32\ntbackup.exe backup systemstate "@C:\Documents and
Settings\Administrator.journal\Local Settings\Application
Data\Microsoft\Windows NT\NTBackup\data\daily.bks" /F
"G:\%computername%-%dtt%.bkf" /D "daily %dtt%" /V:yes /M normal /J "daily
%dtt%" /L:s /FU
call c:\tools\copylog.cmd
exit
---
copylog copies the log file to a folder on the desktop, and also uses
BLAT to mail it to a couple of folks:
---
del c:\tools\*.log
xcopy "c:\documents and settings\administrator.journal\local
settings\application data\microsoft\windows nt\ntbackup\data\*.log"
c:\tools

dir c:\tools\*.log /b /od >c:\tools\ordered.txt

echo %date% >c:\tools\copylogx.txt
echo %time% >>c:\tools\copylogx.txt

type c:\tools\copylog.txt >>c:\tools\copylogx.txt
rem c:\tools\uptime /s /a >>c:\tools\copylogx.txt

for /F "skip=9" %%1 IN (ordered.txt) do rename %%1 current.log

rem current.log is Unicode, so won't go in a text message.
type c:\tools\current.log >c:\tools\%dtt%.log
rem above converts current.log from unicode to ascii.

xcopy %dtt%.log "c:\documents and
settings\administrator.journal\desktop\backup logs\" <f.txt

c:\tools\blat.exe c:\tools\copylogx.txt -t [email addresses go here] -s
"%dtt% backup output" -attacht c:\tools\%dtt%.log

del ordered.txt
del copylogx.txt
---

This works--it's been running for some months now on a Windows Server
2003 machine. I'm sure some of it could be done more elegantly, but I
haven't tinkered with it in a long time. It was "translated" from
Windows 2000 to Windows Server 2003 a few months back when they got a new
server.

"vcapone" <vcapone@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:52D2AFED-B1CB-40F4-ABE1-821E92938AE3@xxxxxxxxxxxxxxxx
Hi, I am using the NT command line backup system temporarily. I wanted
to
know if there was any way of omitting files and/or directories from the
backup through the command line?

Thank You,

Vinny





.



Relevant Pages

  • Re: NT Backup Command Line
    ... Thanks - this file is descended from a server which did not have Exchange installed, and I never learned that trick. ... del ordered.txt ... It was "translated" from Windows 2000 to Windows Server 2003 a few months back when they got a new server. ...
    (microsoft.public.windows.server.sbs)
  • Re: how to find "step by step" articles to learn windows 2003 AD?
    ... Sites by Using ISA Server in Windows 2000 and Windows 2003" ... Additional Help Files for Windows Server 2003" ... http://support.microsoft.com?kbid=323360 "How to install and configure a DHCP ... http://support.microsoft.com?kbid=323381 "HOW TO Allow Remote Users to Access ...
    (microsoft.public.win2000.advanced_server)
  • RE: Backups, VSS and SBS2003 HELP NEEDED!!!
    ... suggest customers Only install Windows Server 2003 SP1 on their server. ...
    (microsoft.public.windows.server.sbs)
  • [NT] Vulnerabilities in DNS Allows Spoofing (MS08-037)
    ... Get your security news from a reliable source. ... the Windows Domain Name System (DNS) that could allow spoofing. ... Microsoft Windows 2000, Windows XP, Windows Server 2003, and Windows ...
    (Securiteam)
  • Der Server konnte keinen nicht ausgelagerten Poolspeicher reservieren, da
    ... Der Server konnte keinen ausgelagerten Poolspeicher reservieren, ... Product Name Microsoft Windows Server 2003 R2 Build Lab ... Sicherheitsupdate für Windows Internet Explorer 7 1 ...
    (microsoft.public.de.german.windows.server.general)