Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ntbackup via scheduled tasks

Posted on 2011-09-08
7
Medium Priority
?
463 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 
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 2000 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

670 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