Page 1 of 2 12 LastLast
  1.    17 Aug 2017 #1
    Join Date : Feb 2016
    Posts : 15
    Win 10 Home

    Foolproof Image Backup script for naive Home users


    Can anyone offer a script running 'WBADMIN -allcritical –systemstate',
    wrapped with a method of checking for success,
    and in particular coping with a mid-process user system shutdown?
    Let me explain this...

    Background
    In return for a donation to a local charity, I offer support to a number of home users.
    None of them is tech-savvy. Many are aged around 70 years. (like me!)
    The OS is Win 10, but the hardware is often old and slow, with a single disk + a local external backup disk (for File History and monthly System Image Backups) some USB3, some USB2.
    The users never check the success of their backup, and on occasions have just shut down the PC before going to bed - I'm only guessing, but certainly Win 7 data backups with system Image have often failed when I check.

    I have had to recover entire systems for various good people, sometimes by a clean re-install with all the hassle of keys for licensed software etc when no image is available. It takes hours of my time. The result is never identical.
    By contrast, last week one user had a system crash, but had a backup and was fully restored on a new disk drive by the end of the next day.

    My preferred scripting language would be PowerShell, even though I have never written any PS – my skills were 99% VBA and 1% VBScript. I'm willing to learn enough PS to get this working.

    I notice many votes for Macrium here, but I can only rely on MS provided software, (WBADMIN and File History), so I’d prefer to rule Macrium as Out of Scope.


    A possible design, with two simple scripts
    • A Logon script to check the backup state:

    If the last backup was not successful, warn user (very loudly) what to do.
    ElseIf previous backup > 30 days old, advise user to do a backup “soon”.
    Else Exit silently
    I plan a new custom key in HKCU with values of Backup Timestamp and a SUCCESS or FAIL value.

    • A WBADMIN wrapper script:

    check backup drive is connected, warn and quit if not.
    set HKCU key to Backup time stamp and a ‘FAIL’ value;
    start WBADMIN and on completion update HKCU key to SUCCESS.
    End
    The logon script should remind users daily until they have run the Backup script successfully.

    With such a tool, I should be able to expect a reliable Image for use on Disaster day.

    Questions about the WindowsImageBackup folder
    Can WindowsImageBackup hold more then one image of the same computer or not?
    Does creating a new image destroy any existing images?
    Is there a guaranteed way of storing two or more images (assuming space)?
    I can’t figure this out from all I have read. (Please, no ref to Macrium in your replies, as it is out of scope).

    I hope some guru here can help in what ought to be a trivial task.I hope I have not posted in the wrong group.

    Spilly
      My ComputerSystem Spec
  2.    17 Aug 2017 #2
    Join Date : Jul 2015
    Posts : 3,714
    10 Pro

    Quote Originally Posted by spilly View Post
    Can WindowsImageBackup hold more then one image of the same computer or not?
    By default, no.
    Quote Originally Posted by spilly View Post
    Does creating a new image destroy any existing images?
    By default yes.
    Quote Originally Posted by spilly View Post
    Is there a guaranteed way of storing two or more images (assuming space)?
    Not unless you write it.

    Quote Originally Posted by spilly View Post
    Can anyone offer a script running 'WBADMIN -allcritical –systemstate',
    Windows System Image backup is deprecated in next release.
    System Image Backup (SIB) Solution
    We recommend that users use full-disk backup solutions from other vendors.
    https://support.microsoft.com/en-us/...ll-creators-up

    You should consider using another method if you want it to be futureproof as well as foolproof rather than ask people to write a script for a deprecated technology.

    You are wanting to not just automate backups but check and rename files, provide user interface and then deal with responses. What you are asking is possible but certainly not trivial. That is why third party backup programs exist.

    It doesn't have to be Macrium - there are many different backup software providers, most free, many quicker and producing smaller images than Macrium. You can take your pick.

    If you do insist on re-inventing the wheel though I'd suggest you either write to your own log file (when wbadmin is finished) or check the timestamp on the backup.

    If you wanted to use PowerShell there are some examples here : Powershell and last modified date - Stack Overflow
      My ComputerSystem Spec
  3.    17 Aug 2017 #3
    Join Date : Dec 2015
    Posts : 5,920
    Windows10

    Quote Originally Posted by lx07 View Post
    It doesn't have to be Macrium - there are many different backup software providers, most free, many quicker and producing smaller images than Macrium.
    I have never found any of the main players that are (significantly) quicker or more efficient than Macrium.

    And if you buy the Home version, its Rapid Delta Restore is awesome.
      My ComputerSystem Spec
  4.    17 Aug 2017 #4
    Join Date : Feb 2016
    Posts : 15
    Win 10 Home
    Thread Starter

    Windows System Image backup is deprecated in next release.
    System Image Backup (SIB) Solution
    We recommend that users use full-disk backup solutions from other vendors.

    I had assumed MS had finally provided a generally available OS with an integrated Backup and Restore solution and that this was going to be a core feature. So much for assumptions!
    Your #2 post has destroyed my naive assumptions and I will abandon this WBADMIN script as of now.
    Thank you for the enlightenment.

    I had been trying to avoid getting users to install anything other than 'pure' Win 10 for all system management issues.

    I played about with Macrium and ToDo EaseUS a while back, but my assumptions above kept me away from them.
    Judging by this forum, Macrium seems to be the product.

    Can you confirm that the free version will provide the equivalent of the following?
    WBADMIN start backup -backupTarget:<BackupTargetDrive> -include:<VolumesToInclude> -allCritical
    From memory & no experience, I believe it does.

    However my OP perhaps still remains - except that this script would now run Reflect instead of WBADMIN.
    - or in your opinion is such a script unnecessary for the naive users I describe?

    Then I think I ought to mark this post as answered.

    Spilly
      My ComputerSystem Spec
  5.    17 Aug 2017 #5
    Join Date : Aug 2016
    Posts : 87
    windows 10 Home ver 1703

    Spilly,

    I have recently install Macrium Free as my System image provider. It really is a fine product.
    There is a lot of flexibility in setting up your desired Image (eg Scheduling, which drive to image, Full or Differential image)

    The feature I like is; if your PC is not turned on at the time your image is scheduled, Macrium will run next time you log on.
      My ComputerSystem Spec
  6.    18 Aug 2017 #6
    Join Date : Jun 2014
    UK
    Posts : 1,051
    W10 pro x64 and W8.1 x86

    Whenever Windows Backup gets mentioned, it always seems to be surrounded by confusion and mis-information.

    Windows Backup can and does by default create differential images meaning that a whole chain of backups is present and recoverable from the single WindowsImagBackup file. The previous image is NOT destroyed. The way Windows handles all this is complex and subtle but the benefit is that the user interface and operations needed to manage backups is very simple. You can even add a desktop shortcut that will launch straight into the application.

    Given W10's propensity to do unexpected things at unwanted times (such as defragging, installing updates etc) then I wouldn't advise a casual user to automate backups. The situation will arise where the backup and other multiple things all want to run at once with the result that the performance would be crippled.

    Once you have made a W10 base image then a home user of the type described here probably need only run the backup again perhaps weekly or fortnightly.
      My ComputerSystem Spec
  7.    18 Aug 2017 #7
    Join Date : Jun 2015
    Posts : 217
    trying to install win10

    Windows Backup can and does by default create differential images meaning that a whole chain of backups is present and recoverable from the single WindowsImagBackup file. The previous image is NOT destroyed.
    Yes, that is correct.

    If you want to use a 3rd party program , I suggest you look at a few. Most have free versions:

    Aomei Backupper is the simplest to use, Paragon is a popular long standing product, macrium is another, Easeus Todo, Image for Windows (IFW), Drive Snapshot, O&O DiskImage. The last 3 don't have free versions, but they have trial versions.
      My ComputerSystem Spec
  8.    18 Aug 2017 #8
    Join Date : Feb 2016
    Posts : 15
    Win 10 Home
    Thread Starter

    #5 Jeddie
    I downloaded Reflect free and then remembered why I was put off last time..
    It was the need to get involved with Win PE and x86 and/or x64 versions, - never been there as yet
    I'm hoping that I can easily generate a startup CD for 32bit on my x64 system
    Then yesterday's Win PE download failed too... grrrr

    #6 Mooly
    From what I've read, I'm sure you're right, but the MS documentation is complex and pretty confusing.
    Then File History seems to duplicate much of Win 7 Backup and runs very quietly in the background
    But the real crunch for me is MS deprecating System Image Backup (post #2 above)
      My ComputerSystem Spec
  9.    18 Aug 2017 #9
    Join Date : Jun 2014
    UK
    Posts : 1,051
    W10 pro x64 and W8.1 x86

    File history is great and I use that in combination with Windows Backup. You can set file history to work with a separate partition on the main HDD... yes I know, not ideal if your drive fails... but you can still copy the contents of file history to a separate drive whenever you feel like it. File history of course simply backs up user data and nothing else.

    As with everything, it depends on what the user wants. I need regular system images (I make at least one per day) and also because of the large amount of random files I work with I still need file history because even a 12hr old backup will often be missing some document I am working with.

    Also in my experience, having stuff like USB drives constantly plugged in and in use tend to slow things down or cause other random issues (hardware dependent of course... and older equipment is often the worse for this).
      My ComputerSystem Spec
  10.    19 Aug 2017 #10
    Join Date : Jun 2015
    UK
    Posts : 2,091
    Windows 10 Home x64 (Laptop), Windows 10 Pro x64 (Desktop)

    I'm quite happy with Macrium Reflect Free which I discovered via this forum. There are various alternative products as discussed above. I have a vehement disregard for Acronis products for reasons I won't go into.
      My ComputersSystem Spec

 
Page 1 of 2 12 LastLast


Similar Threads
Thread Forum
Windows 10 Home Shutdown Script
Is it possible to run a script on shutdown on Windows 10 Home edition? Group Policy Editor (gpedit.msc) is not available. Already tried to modify registry Execute a script a startup and shutdown Tested successfully on Windows 10 Professional...
Customization
image backup?
image backup? you mean iso? and how?
Backup and Restore
Solved Image backup.
Trying to do an image backup in W10 "The drives that are required for windows to run will be included by default." The os is on disk drive c Another internal disk drive, H is classified by w10 as a system disk and also has to be backed up by...
Backup and Restore
Has anyone use the free Image backup . can they backup Window 10 Pro
http://images.paragon-software.com/sites/paragonsoftware.com/ Macrium Reflect Free Free Desktop and Laptop backup - Veeam Endpoint Backup :):) Which ones is good and works as good if not better than Acronis True Image?
Backup and Restore
Script Error in Windows 10 Home
What is it with script error showing up in Windows 10 now? Never had it before since I've had Ten the past few months. Also, I notice my text is very small, although, I have it set at Largest size. This all changed yesterday..2/2016
General Support
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:56.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums