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
Solved

PowerShell to backup Window 2012R2 server

Posted on 2014-07-18
1
465 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
remote desktop services 3 35
Error on  Server Manger Dashboard Windows Server 2012 R2 2 15
Performance monitors 6 16
vmware, windows server 2012 10 25
Table of Contents: Lesson 1 - Installing Windows Server 2012 (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2012/A_11592-Become-an-Administrator-Installing-Windows-Server-2012.html) Lesson 2 - Configuring Ser…
Every now and then, Microsoft does something that totally impresses me. It doesn't happen often, but in this case I must say I am thoroughly impressed with Windows Server Backup. One of the long time issues with Windows Backup has been the ability t…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

790 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