Solved

PowerShell to backup Window 2012R2 server

Posted on 2014-07-18
1
460 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
1 Comment
 
LVL 17

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

What to do when Windows Update is not working correctly? What tools can I use to detect the cause of the malfunction problem? What does this numeric error code mean? These and other questions that you have been asking in the past are answered here (…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…

808 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