Solved

ntbackup via scheduled tasks

Posted on 2011-09-08
7
434 Views
Last Modified: 2012-05-12
Our admin use the ntbackup facility to backup windows server data. I think they schedule it via scheduled tasks. 1 ) Will the scheduled task show where the backup file is being written too? And 2) is there any easy way to report all currently configured scheudled tasks on our 115 or so windows servers in a single report - which must include the exact detail of the task as per point 1.
0
Comment
Question by:pma111
  • 4
  • 3
7 Comments
 
LVL 10

Expert Comment

by:ThorinO
Comment Utility
The schedule task will have the information in the run command in scheduled tasks. I created an example below. BackupName.bks is the backup file.

You can use "schtasks /query /FO CSV /V >> output.csv" to export the information to a CSV.

You can use psexec to run the command against all the servers and point the output to a share or mapped drive. http://technet.microsoft.com/en-us/sysinternals/bb897553
C:\WINDOWS\system32\ntbackup.exe backup "@C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\BackupName.bks" /a /d "Set created 9/8/2011 at 7:42 AM" /v:no /r:no /rs:no /hc:off /m normal /j "BackupName" /l:s /f "C:\Documents and Settings\username\Desktop\BackupName.bkf"

Open in new window

0
 
LVL 3

Author Comment

by:pma111
Comment Utility


C:\WINDOWS\system32\ntbackup.exe backup "@C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\BackupName.bks" /a /d "Set created 9/8/2011 at 7:42 AM" /v:no /r:no /rs:no /hc:off /m normal /j "BackupName" /l:s /f "C:\Documents and Settings\username\Desktop\BackupName.bkf"

Thanks Thorin - just to clarify - which part of this command shows the exact path the output file is going to?

As Im not a backup admin, which the BKF "go somewhere" with all other BKF's before it is written to tape? Like a temp storage location? If so why is this - and why dont admins just write a BKF directly to tape via scheduled tasks.

Excuse my ignorance.
0
 
LVL 3

Author Comment

by:pma111
Comment Utility
>>You can use "schtasks /query /FO CSV /V >> output.csv" to export the information to a CSV.

Is that for local sch tasks on the machine the command is executed?
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 10

Expert Comment

by:ThorinO
Comment Utility
This is the location of the file

C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data\BackupName.bks

You can write NTbackup to tape (I'm pretty sure), so if each server has a tape drive they could go directly there rather than a local destination or UNC.

You will need to use psexec to push that command to each server.  http://ss64.com/nt/psexec.html
0
 
LVL 3

Author Comment

by:pma111
Comment Utility
Is it common for each server to have its own tape library? Or typically one library per environment?

What is an UNC in laymans terms?

If a server doesnt have a tape library where does the BKF sit ready to go to tape - as a rule?

Would you need admin rights on the server to run psexec or could that data be enumerated with normal domain user privs?
0
 
LVL 3

Author Comment

by:pma111
Comment Utility
I dont suppose you could do a quick workflow of the backup and restore process when ntbackup is used in management speak so I can grasp it a bit better
0
 
LVL 10

Accepted Solution

by:
ThorinO earned 500 total points
Comment Utility
As far as I know the tape drive/library needs to be physically connected to the server if it has one.

Here is some information on what a UNC is: http://compnetworking.about.com/od/windowsnetworking/g/unc-name.htm basically a way to remotely connect to another device.

When you create the NTBackup job you tell it where you want the backup being stored. To get more comfortable with NTBackup I would suggest creating some mock jobs using the advanced mode.

I'm not sure if you would need local admin rights on the server to run the psexec but you will need to authenticate at least with a user account. You could try with a non admin account and see what happens.

In terms of what NTBackup does when you backup it will do the files you select. It also has the ability to backup system state, and Microsoft Exchange. You can also do bare metal restores: http://www.backupassist.com/education/bareMetalASR.html

Here is a link on how to restore a file/folder: http://www.serverintellect.com/support/databackup/ntbackup-restore.aspx.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
Create your own, high-performance VM backup appliance by installing NAKIVO Backup & Replication directly onto a Synology NAS!
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now