Solved

ntbackup via scheduled tasks

Posted on 2011-09-08
7
448 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
ID: 36503163
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
ID: 36503195


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
ID: 36503205
>>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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 10

Expert Comment

by:ThorinO
ID: 36503237
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
ID: 36503289
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
ID: 36503329
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
ID: 36503428
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
VM backup deduplication is a method of reducing the amount of storage space needed to save VM backups. In most organizations, VMs contain many duplicate copies of data, such as VMs deployed from the same template, VMs with the same OS, or VMs that h…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
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…

679 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