Drive Snapshot

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

  1. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,150
    Not running.
     
  2. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,150
    I'll try that.
     
  3. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,150
    Before I run that. I just noticed that it had mover files and folders around.

    DS4.jpg
     
  4. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,187
    Location:
    NSW, Australia
    Delete the 3 Entire folders.
     
  5. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,150
    It's running doing it this way.
     
  6. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,150
    I'll lose all my backups.
     
  7. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,150
    I moved the backups before I deleted the folders.
     
  8. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,187
    Location:
    NSW, Australia
    You must have had previous free sna in D:\System_Backup\Drive_Snapshot. They got moved to the Entire folders. One more batch file run and Entire-3 would have been deleted. Don't have any free sna in D:\System_Backup\Drive_Snapshot.
     
  9. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,150
    It just finished and it moved all my backups to a hadron folder.
     
  10. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,187
    Location:
    NSW, Australia
    Sorry, my mistake. The last line should be...

    Code:
    REN hadron Entire-1
    Almost there. Delete the hadron folder.
     
  11. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,150
    OK. Running again.
     
  12. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,187
    Location:
    NSW, Australia
    Fingers crossed this will work. And also subsequent backups.
     
  13. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,150
    Lovely.
    It worked. :thumb:

    I think probably 4 backups to keep would be OK considering that I also use IFW and Reflect.
    And Snapshot backups seem to be smaller than compared to the other 2 backup apps.
     
  14. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,187
    Location:
    NSW, Australia
    Excellent. Make another backup and you will see two Entire folders.
     
  15. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,187
    Location:
    NSW, Australia
    4 backups...

    Code:
    IF EXIST Entire-4 (RD Entire-4 /s /q)
    IF EXIST Entire-3 (REN Entire-3 Entire-4)
    IF EXIST Entire-2 (REN Entire-2 Entire-3)
    IF EXIST Entire-1 (REN Entire-1 Entire-2)
    REN hadron Entire-1
     
  16. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,150
    Will that keep 4 backups at all time?
     
  17. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,150
    Doing one now.
     
  18. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,187
    Location:
    NSW, Australia
    You will always have the 4 most recent backups. When you make a new backup, the oldest one will be deleted.
     
  19. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,150
    Great!
     
  20. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,150
    If I wanted to save another backup number, how would I do it?
    What does this line do? IF EXIST Entire-4 (RD Entire-4 /s /q)
     
  21. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,187
    Location:
    NSW, Australia
    The most recent backups are in Entire-1.
    The oldest backups are in Entire-4 in the above code.
     
  22. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,150
    It has finished.
    So, the latest backup is now Entire-1, and the older one is Entire-2.
     
  23. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,187
    Location:
    NSW, Australia
    Just keep running the same batch file. Easy.

    IF EXIST Entire-4 (RD Entire-4 /s /q)
    This line deletes the current Entire-4 folder. Then Entire-3 is renamed to Entire-4.
     
  24. Brian K

    Brian K Imaging Specialist

    Joined:
    Jan 28, 2005
    Posts:
    12,187
    Location:
    NSW, Australia
    Correct.
     
  25. Hadron

    Hadron Registered Member

    Joined:
    Apr 1, 2014
    Posts:
    2,150
    OK. So, this would retain 5 backups.

    Code:
    IF EXIST Entire-5 (RD Entire-5 /s /q)
    IF EXIST Entire-3 (REN Entire-4 Entire-5)
    IF EXIST Entire-3 (REN Entire-3 Entire-4)
    IF EXIST Entire-2 (REN Entire-2 Entire-3)
    IF EXIST Entire-1 (REN Entire-1 Entire-2)
    REN hadron Entire-1
     
  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.