locked
Incremental and Full backups using WBADMIN and Task Scheduler in Server 2008 R2 RRS feed

  • Question

  • I'd like to create an automated rotating schedule of backups using wbadmin and task scheduler, which would backup Bare Metal Recovery; System State; Drive C: and D: to a Network Share in a pattern like this:

    • Monday - Incremental, overwrite last Monday's
    • Tuesday - Incremental, overwrite last Tuesday's
    • Wednesday - Incremental, overwrite last Wednesday's
    • Thursday - Incremental, overwrite last Thursday's
    • Friday - Incremental overwrite last Friday's
    • Saturday - Full, overwrite last Saturday's

    I need to use the wbadmin commands within the Task Scheduler and do not know any of the required Syntax to make sure everything goes smoothly, I do not want to do this through the CMD.

    Tuesday, May 22, 2012 8:37 PM

Answers

  • I know each backup for the previous corresponding day will be replaced, how do you figure I wont be able to do incremental backups...

    Because incremental backup is based on Volume Shadow Copy (VSS) feature and due to Windows Server 2008 R2 limitations (this limitation is resolved in Windows 8) only one version of backed up data can be stored in a shared folder. So the result is that every time you back up some data on a shared folder, you actually creating a full backup of them.

    is it not supported through task scheduler?

    The Task Scheduler is only a feature that does the tasks that you have defined for it. Actually it runs the wbadmin command that runs on an operating system with the mentioned limitation.

    I know you can do Incremental backups through Windows Server Backup, but my limitation using that is I cant setup multiple backups.

    Yes, you are right. Windows Server Backup feature in Windows Server 2008/2008 R2 has not this functionality (although ntbackup in Windows XP and Windows Server 2003 had this functionality). So, the only workaround to this limitation is through using Task Scheduler feature with wbadmin command. For more information see the following article:

    http://blogs.technet.com/b/filecab/archive/2009/04/13/customizing-windows-server-backup-schedule.aspx

    So are you saying that even though I want each backup to go to a different place on the Shared Folder that it will replace the previous backup anyways?

    No and because of this I said in my previous post that with some modifications and additions you can do the scenario. For example, you back up to a shared folder with the name of Shared1 on Mondays. You also have been configured the backup feature to back up data on another shared folder, named Shared2, on Wednesday. When you repeat the backup operation in Shared1, only the backed up data that resides on it will be affected, and the data on Shared2 remains intact.


    Please feel free to let us know if you have any question or concern.


    Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.




    • Edited by R.Alikhani Wednesday, May 23, 2012 1:23 PM
    • Marked as answer by Jeff Ren Tuesday, May 29, 2012 6:28 AM
    Wednesday, May 23, 2012 1:09 PM
  • The easiest way i have found to do this repliably is:

    In your network storage create a folder for each day of the week (play with the script to get the right outputs):

    wbadmin start backup -backuptarget:\\server\backup\ms_backup\%DATE:~0,3%\Data -include:c:,e: -quiet

    the %DATE:~0,3% returns Mon for monday, etc.

    This will run a full backup everynight, which isnt 100% what you want but it certainly get there. additionally most people like to have email logs sent to them, i also created the following:

    --===start copy/paste ===--

    del c:\scripts\backup_results.txt
    del c:\scripts\backup_log.txt
    wevtutil qe Microsoft-Windows-Backup /f:text /q:"*[System/EventID=4] and *[System[TimeCreated[timediff(@SystemTime) <= 10800000]]]" /c:1 >
    c:\scripts\backup_results.txt
    copy c:\scripts\backup_results.txt
    c:\scripts\backup_log.txt
    echo ================ >
    c:\scripts\backup_log.txt
    set EmailSubject="Email Subject"
    echo
    EmailSubject set to %emailsubject% >> c:\scripts\backup_log.txt
    wevtutil qe Microsoft-Windows-Backup /f:text /q:"*[System/EventID=4] and *[System[TimeCreated[timediff(@SystemTime) <= 10800000]]]" /c:1 > c:\scripts\backup_results.txt
    bmail -s Email_Server -t To_address -f from_address -m c:\scripts\backup_results.txt -c -a %EmailSubject% > c:\scripts\email_results.txt
    chdir c:\scripts\
    mkdir %DATE:~0,3%
    move c:\scripts\*.txt c:\scripts\%DATE:~0,3%\ 
    --=== End copy/paste ===--

    Now for the tricky part, look into your logs under "application and service logs\Microsoft\Windows\Backup\Operational" look for an event id 14, right click it and set a task to run the above pasted script.

    What this all means is 1) you have a script to start your backups giving you 7 day rotation, 2) you have a script that is triggered on the 'backup completed' event log (fires if fail or not) that then looks up event ID 4 in the last 6 hours (adjust the window to suit), so what that means if you dont get an email, your backup failed :)

    • Proposed as answer by Shadoway Tuesday, July 24, 2012 11:42 PM
    • Marked as answer by Maurice Moss Wednesday, July 25, 2012 1:29 PM
    Tuesday, July 24, 2012 11:42 PM
  • Although you can do the mentioned scenario (with some modifications and additions) with wbadmin and schtask commands, you should consider the following limitation:


    When you use a remote shared folder as the storage destination for scheduled backups, each backup will erase the previous backup, and only the latest backup will be available and also you have only full backups, instead of incremental backups.


    Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.



    • Edited by R.Alikhani Wednesday, May 23, 2012 12:37 PM
    • Marked as answer by Jeff Ren Tuesday, May 29, 2012 6:28 AM
    Wednesday, May 23, 2012 12:35 PM
  • Hi,

     

    I agree with R.Alikhani’s advice, you are using a network location (i.e. \\servername\foldername) as a backup target in above commands. However, network backups will save only the latest version of the backup, deleting the previous version, as multiple versions on the network share are not supported, you actually creating a full backup of them.

    For more details, please refer to:

    http://blogs.technet.com/b/filecab/archive/2009/04/13/customizing-windows-server-backup-schedule.aspx


    Jeff Ren TechNet Community Support beneficial to other community members reading the thread.

    • Marked as answer by Jeff Ren Tuesday, May 29, 2012 6:28 AM
    Tuesday, May 29, 2012 6:27 AM

All replies

  • Although you can do the mentioned scenario (with some modifications and additions) with wbadmin and schtask commands, you should consider the following limitation:


    When you use a remote shared folder as the storage destination for scheduled backups, each backup will erase the previous backup, and only the latest backup will be available and also you have only full backups, instead of incremental backups.


    Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.



    • Edited by R.Alikhani Wednesday, May 23, 2012 12:37 PM
    • Marked as answer by Jeff Ren Tuesday, May 29, 2012 6:28 AM
    Wednesday, May 23, 2012 12:35 PM
  • I know each backup for the previous corresponding day will be replaced, how do you figure I wont be able to do incremental backups...is it not supported through task scheduler? I know you can do Incremental backups through Windows Server Backup, but my limitation using that is I cant setup multiple backups.  So are you saying that even though I want each backup to go to a different place on the Shared Folder that it will replace the previous backup anyways? Thanks
    Wednesday, May 23, 2012 12:43 PM
  • I know each backup for the previous corresponding day will be replaced, how do you figure I wont be able to do incremental backups...

    Because incremental backup is based on Volume Shadow Copy (VSS) feature and due to Windows Server 2008 R2 limitations (this limitation is resolved in Windows 8) only one version of backed up data can be stored in a shared folder. So the result is that every time you back up some data on a shared folder, you actually creating a full backup of them.

    is it not supported through task scheduler?

    The Task Scheduler is only a feature that does the tasks that you have defined for it. Actually it runs the wbadmin command that runs on an operating system with the mentioned limitation.

    I know you can do Incremental backups through Windows Server Backup, but my limitation using that is I cant setup multiple backups.

    Yes, you are right. Windows Server Backup feature in Windows Server 2008/2008 R2 has not this functionality (although ntbackup in Windows XP and Windows Server 2003 had this functionality). So, the only workaround to this limitation is through using Task Scheduler feature with wbadmin command. For more information see the following article:

    http://blogs.technet.com/b/filecab/archive/2009/04/13/customizing-windows-server-backup-schedule.aspx

    So are you saying that even though I want each backup to go to a different place on the Shared Folder that it will replace the previous backup anyways?

    No and because of this I said in my previous post that with some modifications and additions you can do the scenario. For example, you back up to a shared folder with the name of Shared1 on Mondays. You also have been configured the backup feature to back up data on another shared folder, named Shared2, on Wednesday. When you repeat the backup operation in Shared1, only the backed up data that resides on it will be affected, and the data on Shared2 remains intact.


    Please feel free to let us know if you have any question or concern.


    Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.




    • Edited by R.Alikhani Wednesday, May 23, 2012 1:23 PM
    • Marked as answer by Jeff Ren Tuesday, May 29, 2012 6:28 AM
    Wednesday, May 23, 2012 1:09 PM
  • I understand that the backups will be overwritten, that is okay. I guess what I need to know is if Incremental backups are at all possible using wbadmin within task scheduler so that I can set it up to do an Incremental M-F and a Full back up every Saturday.  Thanks again for all the help.

    So basically I want my setup to look like this.

    Server 1 does a Full backup every Saturday with Incremental backups M-F

    Same thing goes for Server 2 to 1...Server 3 to 4....Server 4 to 3...and all Servers 1-4 to the MSA. Hence the reason I need to set this up through Task Scheduler and not Windows Backup.

    Wednesday, May 23, 2012 4:34 PM
  • Hi,

     

    I agree with R.Alikhani’s advice, you are using a network location (i.e. \\servername\foldername) as a backup target in above commands. However, network backups will save only the latest version of the backup, deleting the previous version, as multiple versions on the network share are not supported, you actually creating a full backup of them.

    For more details, please refer to:

    http://blogs.technet.com/b/filecab/archive/2009/04/13/customizing-windows-server-backup-schedule.aspx


    Jeff Ren TechNet Community Support beneficial to other community members reading the thread.

    • Marked as answer by Jeff Ren Tuesday, May 29, 2012 6:28 AM
    Tuesday, May 29, 2012 6:27 AM
  • There is no need to schedule Full for Saturday, and Incremental M-F. The term "incremental" has a different meaning. Your backup is always one and Full in terms of restorability. "Incremental" means that Windows Backup changes only the blocks it needs in your previous backup. This means few changes, but still you have the whole backup.

    This is also the reason that your backups will always be Full in a network share, even if you specify incremental. This means that the whole data will be copied, not just the changed blocks. This is due to the filesystem. A NAS network share (CIFS/SMB) is file-based, so if you try to change a few blocks in a file the whole file will be changed in the disk (i.e. read, changed and written again). The only way to have an incremental backup is only if you have a block-based filesystem. This is done only for local disks or SAN disks visible through FC or iSCSI.

    Tuesday, May 29, 2012 7:01 AM
  • So...I cant do an Incremental?  I got my Full backups to work...but when I tried doing and Incremental its still doing a Full.

    start backup -backupTarget:\\Server2\Backup\Server1\1_Inc_Backup_Monday -include:C:,D: -quiet        

    This is what I used (Doesnt do an Incremental)

    start backup -backupTarget:\\Server2\Backup\Server1\6_Full_Backup_Saturday -include:C:,D: -allCritical -systemState -vssfull -quiet

    (Works fine as a Full Backup)

    What am I missing to be able to do an Incremental...Thanks

    Tuesday, May 29, 2012 2:27 PM
  • So...I cant do an Incremental?  I got my Full backups to work...but when I tried doing and Incremental its still doing a Full.

    start backup -backupTarget:\\Server2\Backup\Server1\1_Inc_Backup_Monday -include:C:,D: -quiet        

    This is what I used (Doesnt do an Incremental)

    start backup -backupTarget:\\Server2\Backup\Server1\6_Full_Backup_Saturday -include:C:,D: -allCritical -systemState -vssfull -quiet

    (Works fine as a Full Backup)

    What am I missing to be able to do an Incremental...Thanks

    As I said before, you can not take incremental backups on remote shared folders, because each backup will erase the previous backup, and only the latest backup will be available.

    A possible workaround to this limitation is to use iSCSI Target on your remote server and then connect to the shared storage by using iSCSI Initiator. Now the remote storage appears as a local storage and you can specify that local storage for Full or Incremental backup scenarios.


    Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    • Proposed as answer by pwnkmr Thursday, January 15, 2015 1:28 PM
    Tuesday, May 29, 2012 2:41 PM
  • My (small) experience with wbadmin is that command line wbadmin reads the parameters from the GUI "Windows Server Backup" configuration. So start the GUI and see what are the full/incremental settings there (Configure Performance Settings).

    Tuesday, May 29, 2012 2:49 PM
  • I have Full and Incremental options.
    Tuesday, May 29, 2012 2:54 PM
  • So...I cant do an Incremental?  I got my Full backups to work...but when I tried doing and Incremental its still doing a Full.

    start backup -backupTarget:\\Server2\Backup\Server1\1_Inc_Backup_Monday -include:C:,D: -quiet        

    This is what I used (Doesnt do an Incremental)

    start backup -backupTarget:\\Server2\Backup\Server1\6_Full_Backup_Saturday -include:C:,D: -allCritical -systemState -vssfull -quiet

    (Works fine as a Full Backup)

    What am I missing to be able to do an Incremental...Thanks

    As I said before, you can not take incremental backups on remote shared folders, because each backup will erase the previous backup, and only the latest backup will be available.

    A possible workaround to this limitation is to use iSCSI Target on your remote server and then connect to the shared storage by using iSCSI Initiator. Now the remote storage appears as a local storage and you can specify that local storage for Full or Incremental backup scenarios.


    Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Is the iSCSI Target / Initiator free software? Could I get a link to it please? Thanks!
    Tuesday, May 29, 2012 3:19 PM
  • iSCSI Initiator (a client-side application) is a built-in component in Windows Server 2008 R2 and Windows 7. To access this tool, go to Control Panel and execute it as shown in the following figure:

    iSCSI Target (the server-side application) is a tool that you can download it freely from Microsoft Download Center at the following link:
    http://www.microsoft.com/en-us/download/details.aspx?id=19867

    Please feel free to let us know if you have any question or concern.


    Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Tuesday, May 29, 2012 3:32 PM
  • Ok...

    Are you at all familiar with iSCSI? I have the initiator program open and the service started on my servers. So I want Server One to act as an initiator...and Server 2 the target...and vice versa. When I try to add one of the servers as a target it keeps saying connection failed...what a pain! Thanks for all the help!

    Tuesday, May 29, 2012 3:59 PM
  • Take a look at the following link for some insight about how to configure iSCSI Target and its related Initiator:

    http://www.ms4u.info/2009/11/building-iscsi-target-with-windows.html


    Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Tuesday, May 29, 2012 5:13 PM
  • The easiest way i have found to do this repliably is:

    In your network storage create a folder for each day of the week (play with the script to get the right outputs):

    wbadmin start backup -backuptarget:\\server\backup\ms_backup\%DATE:~0,3%\Data -include:c:,e: -quiet

    the %DATE:~0,3% returns Mon for monday, etc.

    This will run a full backup everynight, which isnt 100% what you want but it certainly get there. additionally most people like to have email logs sent to them, i also created the following:

    --===start copy/paste ===--

    del c:\scripts\backup_results.txt
    del c:\scripts\backup_log.txt
    wevtutil qe Microsoft-Windows-Backup /f:text /q:"*[System/EventID=4] and *[System[TimeCreated[timediff(@SystemTime) <= 10800000]]]" /c:1 >
    c:\scripts\backup_results.txt
    copy c:\scripts\backup_results.txt
    c:\scripts\backup_log.txt
    echo ================ >
    c:\scripts\backup_log.txt
    set EmailSubject="Email Subject"
    echo
    EmailSubject set to %emailsubject% >> c:\scripts\backup_log.txt
    wevtutil qe Microsoft-Windows-Backup /f:text /q:"*[System/EventID=4] and *[System[TimeCreated[timediff(@SystemTime) <= 10800000]]]" /c:1 > c:\scripts\backup_results.txt
    bmail -s Email_Server -t To_address -f from_address -m c:\scripts\backup_results.txt -c -a %EmailSubject% > c:\scripts\email_results.txt
    chdir c:\scripts\
    mkdir %DATE:~0,3%
    move c:\scripts\*.txt c:\scripts\%DATE:~0,3%\ 
    --=== End copy/paste ===--

    Now for the tricky part, look into your logs under "application and service logs\Microsoft\Windows\Backup\Operational" look for an event id 14, right click it and set a task to run the above pasted script.

    What this all means is 1) you have a script to start your backups giving you 7 day rotation, 2) you have a script that is triggered on the 'backup completed' event log (fires if fail or not) that then looks up event ID 4 in the last 6 hours (adjust the window to suit), so what that means if you dont get an email, your backup failed :)

    • Proposed as answer by Shadoway Tuesday, July 24, 2012 11:42 PM
    • Marked as answer by Maurice Moss Wednesday, July 25, 2012 1:29 PM
    Tuesday, July 24, 2012 11:42 PM
  • I know each backup for the previous corresponding day will be replaced, how do you figure I wont be able to do incremental backups...

    Because incremental backup is based on Volume Shadow Copy (VSS) feature and due to Windows Server 2008 R2 limitations (this limitation is resolved in Windows 8) only one version of backed up data can be stored in a shared folder. So the result is that every time you back up some data on a shared folder, you actually creating a full backup of them.

    is it not supported through task scheduler?

    The Task Scheduler is only a feature that does the tasks that you have defined for it. Actually it runs the wbadmin command that runs on an operating system with the mentioned limitation.

    I know you can do Incremental backups through Windows Server Backup, but my limitation using that is I cant setup multiple backups.

    Yes, you are right. Windows Server Backup feature in Windows Server 2008/2008 R2 has not this functionality (although ntbackup in Windows XP and Windows Server 2003 had this functionality). So, the only workaround to this limitation is through using Task Scheduler feature with wbadmin command. For more information see the following article:

    http://blogs.technet.com/b/filecab/archive/2009/04/13/customizing-windows-server-backup-schedule.aspx

    So are you saying that even though I want each backup to go to a different place on the Shared Folder that it will replace the previous backup anyways?

    No and because of this I said in my previous post that with some modifications and additions you can do the scenario. For example, you back up to a shared folder with the name of Shared1 on Mondays. You also have been configured the backup feature to back up data on another shared folder, named Shared2, on Wednesday. When you repeat the backup operation in Shared1, only the backed up data that resides on it will be affected, and the data on Shared2 remains intact.


    Please feel free to let us know if you have any question or concern.


    Please VOTE as HELPFUL if the post helps you and remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.




    Hi R.Alikhani

    Then do you know if wbadmin supports incremental backup in Windows 8? As you said the VSS issue is fixed in Win8. However, the wbadmin has less options then in windows server. I tried a bit but it seems it only supports full backup? ps, I use a network share - will the incremental backup works if I define a ISCCI then? My remote backup PC is also running Win8.

    Saturday, December 8, 2012 2:41 PM
  • In older versions of Windows I could write a script that did something like this:

    FULLMONTHLY - create a full backup in a location and automatically name the folder something like MONTHYEAR-FULL and all the backup files in the folder, then schedule the script to kick off last day of month

    DAYINCREMENTAL - create an incremental in a location and automatically name the folder something like MM-DD-YY-FULL and all the backup files in the folder, then schedule the script to kick off daily

    Since XP/2003 Microsoft has royally screwed up backup.  How can I do it the way I mentioned above without using the GUI for backup in Vista/7/2008/2008R2?

    Thank You!

    Sunday, December 23, 2012 1:06 AM
  • Function Create-ScheduledJob {
    <#
    .Synopsis
       schedules nightly backups.
    .FUNCTIONALITY
       PowerShell v3.0+
    .CREATED BY
        Matthew A. Kerfoot 1/10/2014   Find more scripts at www.matthewkerfoot.com
    #>
    [CmdletBinding()]
        Param( [Parameter( Mandatory = $true )]
               $Enter_Name_to_call_new_Scheduled_Job,
               [Parameter( Mandatory = $false )]
               $ScriptToRun,
               $VerbosePreference = "Continue" )

    Begin{ $Trigger = (New-JobTrigger -Daily -At 12:01AM) }

    Process{ Register-ScheduledJob -Name $JobName -Trigger $Trigger -ScriptBlock {

        if ((Get-date).DayOfWeek -eq "Monday")    { wbAdmin start backup -backupTarget:E:\Backups\MondayBackup\ -include:C: -quiet }
    elseif ((Get-date).DayOfWeek -eq "Tuesday")   { wbAdmin start backup -backupTarget:E:\Backups\TuesdayBackup\ -include:C: -quiet }
    elseif ((Get-date).DayOfWeek -eq "Wednesday") { wbAdmin start backup -backupTarget:E:\Backups\WednesdayBackup\ -include:C: -quiet }
    elseif ((Get-date).DayOfWeek -eq "Thursday")  { wbAdmin start backup -backupTarget:E:\Backups\ThursdayBackup\ -include:C: -quiet }
    elseif ((Get-date).DayOfWeek -eq "Friday")    { wbAdmin start backup -backupTarget:E:\Backups\FridayBackup\ -include:C: -quiet }
    elseif ((Get-date).DayOfWeek -eq "Saturday")  { wbAdmin start backup -backupTarget:E:\Backups\SaturdayBackup\ -include:C: -quiet }
    elseif ((Get-date).DayOfWeek -eq "Sunday")    { wbAdmin start backup -backupTarget:E:\Backups\SundayBackup\ -include:C: -quiet }
        
        } 
    }

    End { Write-Verbose "Your new ScheduledJob has been created successfully!" }

    }Create-ScheduledJob

    Cheers, Matthew Kerfoot

    Friday, January 10, 2014 2:30 PM
  • Function Create-ScheduledJob {
    <#
    .Synopsis
       schedules nightly backups.
    .FUNCTIONALITY
       PowerShell v3.0+
    .CREATED BY
        Matthew A. Kerfoot 1/10/2014   Find more scripts at www.matthewkerfoot.com
    #>
    [CmdletBinding()]
        Param( [Parameter( Mandatory = $true )]
               $Enter_Name_to_call_new_Scheduled_Job,
               [Parameter( Mandatory = $false )]
               $ScriptToRun,
               $VerbosePreference = "Continue" )

    Begin{ $Trigger = (New-JobTrigger -Daily -At 12:01AM) }

    Process{ Register-ScheduledJob -Name $JobName -Trigger $Trigger -ScriptBlock {

        if ((Get-date).DayOfWeek -eq "Monday")    { wbAdmin start backup -backupTarget:E:\Backups\MondayBackup\ -include:C: -quiet }
    elseif ((Get-date).DayOfWeek -eq "Tuesday")   { wbAdmin start backup -backupTarget:E:\Backups\TuesdayBackup\ -include:C: -quiet }
    elseif ((Get-date).DayOfWeek -eq "Wednesday") { wbAdmin start backup -backupTarget:E:\Backups\WednesdayBackup\ -include:C: -quiet }
    elseif ((Get-date).DayOfWeek -eq "Thursday")  { wbAdmin start backup -backupTarget:E:\Backups\ThursdayBackup\ -include:C: -quiet }
    elseif ((Get-date).DayOfWeek -eq "Friday")    { wbAdmin start backup -backupTarget:E:\Backups\FridayBackup\ -include:C: -quiet }
    elseif ((Get-date).DayOfWeek -eq "Saturday")  { wbAdmin start backup -backupTarget:E:\Backups\SaturdayBackup\ -include:C: -quiet }
    elseif ((Get-date).DayOfWeek -eq "Sunday")    { wbAdmin start backup -backupTarget:E:\Backups\SundayBackup\ -include:C: -quiet }
        
        } 
    }

    End { Write-Verbose "Your new ScheduledJob has been created successfully!" }

    }Create-ScheduledJob

    Cheers, Matthew Kerfoot

    This work on windows 7 Pro x64? This will create 7 C: images?
    Thursday, May 1, 2014 7:22 AM
  • Hi R alikhani

    does this same happen in 2003 Ntbackup, if there is no mapped drive so it replaced old one with new data backup

    there is any options as i am using ntbackup with schedule backup target unc path.

    Thursday, January 15, 2015 1:27 PM
  • Incremental Backups ARE possible on a network share. This means that only the changed data will be copied over the network. The Backup will however only be the latest copy so a second copy on alternate days would be advisable. The screen shot of the backup result below was run as a WBADMIN script and shows that it was an incremental to a network path

    Wednesday, May 6, 2015 1:38 PM
  • I know this is an old post but I cannot get the email script to work correctly.

    I have it mostly working by moving the lines after the echo commands to the same line as the echo commands.

    Not sure about the email subject and email server lines.  Which words am I supposed to replace with my email subject and email server name and email addresses etc?

    It fails on the bmail line.  I cannot find bmail as an option in the wevtutil command. 

    Thanks,

    Charlie

    Tuesday, May 19, 2015 12:56 PM
  • Yes, this is EXACTLY what I want to do ... but how do you do this in a wbadmin command line? I already do this in the GUI, but since MS crippled the backup on the newer Windows so badly, you can only have one GUI backup at a time. I want a 2nd backup running that does something a bit different, but I want this same "incremental" (i.e., change-blocks-in-place) behavior in a command line. HOW??
    Monday, August 29, 2016 3:47 PM