Solved

PowerShell to backup Window 2012R2 server

Posted on 2014-07-18
1
474 Views
Last Modified: 2014-08-04
Is it possible to write two power script such that one script will do a full backup on weekend and the other will  do the differential backup. Both script will send out an email.
0
Comment
Question by:AXISHK
[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
1 Comment
 
LVL 18

Accepted Solution

by:
Mike T earned 500 total points
ID: 40206254
Hi,

Since you're asking the question I guess you're not a scripter. It is possible, but not a good idea unless you have a superb reason.

The best solution is to use the Windows Backup feature in Server, which has a command line feature, using wbadmin.

See http://technet.microsoft.com/en-gb/library/cc732081.aspx for details.
In 2012 wbadmin also has PowerShell via the snapin.

For the email notification you can use the PowerShell cmdlet  Send-MailMessage. Combining all three: wbadmin + PowerShell snapin + PowerShell  Send-MailMessage will meet your needs.

Mike
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

The following article is comprised of the pearls we have garnered deploying virtualization solutions since Virtual Server 2005 and subsequent 2008 RTM+ Hyper-V in standalone and clustered environments.
Understanding the various editions available is vital when you decide to purchase Windows Server 2012. You need to have a basic understanding of the features and limitations in each edition in order to make a well-informed decision that best suits y…
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

726 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