Drive Snapshot

Discussion in 'backup, imaging & disk mgmt' started by Hadron, Nov 11, 2019.

  1. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,115
    Location:
    NSW, Australia
    When you make your next full image your current images will be in folder Entire-2.

    But as you say, new diffs (associated with the latest full) go into Entire-1.

    I assume you have made a few diffs as a test. How long does it take?

    Unlike incrementals, you can delete any differentials and the remainder are still fine.
     
  2. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,137
    Yes. I forgot about that. Even better then.
     
  3. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,137
    I have never been keen on incrementals.
    I have never bothered with them in any backup applications. They are a higher risk which there is no need to take.
     
  4. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,137
    I minute, 09 seconds.
     
  5. paulderdash

    paulderdash Registered Member

    Joined:
    Dec 27, 2013
    Posts:
    4,639
    Location:
    Under a bushel ...
    Just reading through now, haven't had a chance yet - this will be a dedicated project for me!

    I see my short date format on one laptop is M/d/yyyy and on another yyyy/MM/dd (preferred!).
    I am hesitant to change these (in case it causes unforeseen problems somewhere) - else I would.
    But should I also use script #133 when I try this?
     
  6. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,115
    Location:
    NSW, Australia
    Nice!
     
  7. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,137
    It is so good, Brian.

    Thanks again.
     
  8. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,115
    Location:
    NSW, Australia
    If you prefer your date format then use #133. No big loss. The main reason to use %date% or %time% is so each diff has a unique name.
     
  9. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,137
    Brian, each diff has a unique name for me and I didn't change my date format.
    Maybe I misunderstood.

    DS Entire-1.jpg

    By the way, what is that numbering convention?
     
  10. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,115
    Location:
    NSW, Australia
    Hadron, you aren't using %date% now so your date format doesn't matter.
    Script #133 doesn't use %date%. It's a Hadron customisation.
     
  11. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,115
    Location:
    NSW, Australia
    Maybe everyone should use #133 as they are unlikely to have my date format.
     
  12. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,137
    That's what I was just thinking.
    I don't see the need for it.
    What do the 6 digit numbers indicate at the end of the differential files? It is not time, but they are all unique.
     
  13. paulderdash

    paulderdash Registered Member

    Joined:
    Dec 27, 2013
    Posts:
    4,639
    Location:
    Under a bushel ...
    A bit OT, but could changing short date, or other preferences like first day of the week, cause issues anywhere (e.g. Macrium Reflect for example) or is it unlikely.

    My preference would be yyyy-MM-dd.
     
  14. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,115
    Location:
    NSW, Australia
    Do you mean HD1-3

    It's the third partition on HD1. If a partition doesn't have a drive letter you will see that numbering.
    If a partition doesn't have a drive letter you will see the message about VSS not being supported.
     
  15. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,137
    For example, the first differential in my screenshot above.
    C-diff-154749.sna
     
  16. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,115
    Location:
    NSW, Australia
    The 6 digit numbers are time.
    154749 is 47:49 after 3pm.
     
  17. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,115
    Location:
    NSW, Australia
    I don't think changing the format will break anything.
    I like yyyy-MM-dd but I prefer yyyy-MMM-dd
    Your choice.
     
  18. paulderdash

    paulderdash Registered Member

    Joined:
    Dec 27, 2013
    Posts:
    4,639
    Location:
    Under a bushel ...
    I just don't have that option in the drop down on either laptop.

    Bese is yyyy/MM/dd on one and yyyy-MM-dd on the other (I think because one has en-ZA and the other en-US defaults somewhere).
     
  19. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,137
    I'm happy with the way it is.
    I really don't see any advantage in having a date in the file name as the date is in the Date Modified attribute.

    I would do it if I didn't have to change the date format, but I like / in the date
     
  20. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,115
    Location:
    NSW, Australia
    I don't have the option either but on the Date tab, Short date, just type an extra M

    My short date is 2020-Jul-14. I like that better than 2020-07-14
     
  21. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,115
    Location:
    NSW, Australia
    That's fine. Your diffs are as good as mine.
     
  22. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,115
    Location:
    NSW, Australia
    Paul, the only change you need to make in the full and diff scripts is the path to your DS backups. Simple.

    And the CD line.
     
    Last edited: Jul 14, 2020
  23. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,137
    I gotta say, this is the best 449 KB application I have. It would fit on a Floppy at least a couple of times.
    And it's reliable, fast and supports full and differential backups.
     
  24. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,115
    Location:
    NSW, Australia
    Edited scripts for people wanting to try this. You only have to edit one line. The first...

    set DSpath=

    ...line.
    Don't change the second
    set DSpath= line. It should be empty to remove the variable.

    Check the DS GUI to confirm the drive you want to image is really HD1

    FULL
    Code:
    @echo off
    CD /d %~dp0
    if not defined RunTask set RunTask=1 & start "Snapshot" /min %SystemRoot%\system32\cmd.exe /c "%0" & goto :EOF
    
    set DSpath=D:\System_Backup\Drive_Snapshot
    
    snapshot64.exe HD1:* "%DSpath%\$disk.sna" -R -L0 --UseVSS -W
    
    CD /d %DSpath%
    
    MD Backup
    MOVE *.sna Backup
    MOVE *.hsh Backup
    
    IF EXIST Entire-3 (RD Entire-3 /s /q)
    IF EXIST Entire-2 (REN Entire-2 Entire-3)
    IF EXIST Entire-1 (REN Entire-1 Entire-2)
    REN Backup Entire-1
    
    set DSpath=
    
    

    DIFF
    Code:
    @echo off
    CD /d %~dp0
    if not defined RunTask set RunTask=1 & start "Snapshot" /min %SystemRoot%\system32\cmd.exe /c "%0" & goto :EOF
    
    set DSpath=D:\System_Backup\Drive_Snapshot
    
    set hh=%time:~0,2%
    if "%time:~0,1%"==" " set hh=0%hh:~1,1%
    set timestamp=%time:~0,8%
    if @%timestamp:~0,1% == @ set timestamp=0%timestamp:~1,7%
    set timestamp=%timestamp::=%
    echo.Timestamp :: %timestamp%
    
    snapshot64.exe HD1:* "%DSpath%\Entire-1\$disk-diff-%timestamp%.sna" -h"%DSpath%\Entire-1\$disk.hsh" -R -L0 --UseVSS -W
    
    set DSpath=
    
    Even if there are spaces in the path, don't use " " in the set DSpath= line.
     
    Last edited: Jul 14, 2020
  25. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,115
    Location:
    NSW, Australia
    Hadron, no need for you to change scripts.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.