Re: ntbackup's bkf files - create via command-line?
- From: <workinghard@xxxxxxxxxxxxxx>
- Date: Tue, 20 Dec 2005 21:39:27 +0100
Pretty cool! The CMD /U switch is what PSS will recommend by the way.
Windows 2003 is also the first version where bare metal restore short file
name trip over was fixed, I'm really happy with that :-)
Since you're into scripting backups: check this out ... amazing, no install,
fully scriptable ... and you can even mount the snapshots to a drive letter
and browse it.
http://www.drivesnapshot.de/en/news.htm
I love it, that combined with ntbackup is extremly powerfull way of backup
redundancy and fast recovery ... and very very cheap ...compared to what's
out there in alternative.
Mostely I only use backups to tape for off site storage just in case
whenever I can.
"/\/\o\/\/" <no@xxxxxxxx> wrote in message
news:uWWSBbYBGHA.976@xxxxxxxxxxxxxxxxxxxxxxx
>
> I did it in script to generate the file (so there would be no dirs that do
> not exist, hence I did not need the hotfix (b.t.w. thanks for the tip I
> did not know there was one, if you have a fixed list this is much more
> handy ;-))
>
> also with notepad I can not generate it from script,(I constructed the
> userdir names that change often), thats why I recommended the CMD /U
> command to make the BKS file.
>
> the solution will also work on W2K (if all dirs exist) but you must NOT
> use the @ sign there, as it is mandatory in W2K3 it is forbidden in the
> W2K version of NtBackup, so you need 2 scripts if you have 2000 and W2K3
> servers.
>
>
> gr /\/\o\/\/
>
> workinghard@xxxxxxxxxxxxxx wrote:
>> You can create the file in notepad and save it a unicode, that will also
>> work. Also due to a bug in the parsing of unicode bks files you must have
>> W2K3 SP1 or hotfix
>> http://support.microsoft.com/default.aspx?scid=kb;en-us;828402 installed,
>> another handy hotfix for non W2K3 SP1 systems is
>> http://support.microsoft.com/default.aspx?scid=kb;en-us;817688
>> For windows XP you need SP2 or the hotfix 828402 for XP. Even with SP2
>> it can be necessary to add an empty row to the bks file if you have not
>> created it with the ntbackup tool (have not tested this with Windows XP
>> SP1 & hotfix).
>>
>> But after sorting all of this out I have fully automated backups of 16
>> servers using ntbackups with centralized archiving of the logs and e-mail
>> notifications to the admins :-)
>>
>>
>> "/\/\o\/\/" <no@xxxxxxxx> wrote in message
>> news:eJKOrrTBGHA.3936@xxxxxxxxxxxxxxxxxxxxxxx
>>
>>>chengbanger@xxxxxxxxx wrote:
>>>
>>>> In reference to the bkf file, the KB article says "You have to create
>>>>the file using the graphical user interface (GUI) version of Backup."
>>>>
>>>>So, does that mean there is no way to automatically, through a script,
>>>>create a a *.bkf file so that I can run ntbackup from the command-line
>>>>like this (where the bkf file is the 2nd argument):
>>>>
>>>>C:\WINDOWS\system32\ntbackup.exe backup "@C:\Documents and
>>>>Settings\Admin\Local Settings\Application Data\Microsoft\Windows
>>>>NT\NTBackup\data\Outlook2.bks" /n "Backup - Outlook.bkf created
>>>>12/19/2005 at 12:19 PM" /d "Set created 12/19/2005 at 12:19 PM" /v:yes
>>>>/r:no /rs:no /hc:off /m normal /j "Outlook" /l:s /f "C:\Backup -
>>>>Outlook.bkf"
>>>>
>>>
>>>You can do this, but you have to set the CMD to Unicode Mode. (cmd /U)
>>>becouse the file should be unicode, else you will get an error while
>>>reading the backupfile.
>>>
>>>than you can use echo to fill it like this :
>>>
>>>cmd /U /C for /f %%i in (output\toMigrate.txt) do echo %userdir%\%%i\
>>>
>>>>>output\umove.bks
>>>
>>>gr /\/\o\/\/
>>
>>
.
- References:
- ntbackup's bkf files - create via command-line?
- From: chengbanger
- Re: ntbackup's bkf files - create via command-line?
- From: /\\/\\o\\/\\/
- Re: ntbackup's bkf files - create via command-line?
- From: workinghard
- Re: ntbackup's bkf files - create via command-line?
- From: /\\/\\o\\/\\/
- ntbackup's bkf files - create via command-line?
- Prev by Date: Re: Scripting VS server tasks
- Next by Date: books on scripting
- Previous by thread: Re: ntbackup's bkf files - create via command-line?
- Next by thread: Re: Convert Word Document to PostScript (Print to File)
- Index(es):
Relevant Pages
|