Solved How to replicate "Time Machine" on Windows 7?

capslockwizard

New member
Local time
9:27 PM
Messages
2
I am extremely interested making use of the Volume Shadow Service (VSS) to replicate what Time Machine on Mac OS X does. According to Wikipedia Time Machine makes hourly backups.

I know that in Windows 7 there is the "Previous Version" shell extension that allows you to restore your files from a backup or restore point created through VSS. The problem is the restore points are not often created and it is difficult to predict when it will be created barring windows updates, driver installations and other major changes to the system.

I have looked up at how VSS works, according to Microsoft VSS doesn't initiate any kind of backup/restore point creation by itself. It needs a Requestor to initiate it.

The first clue of the Requestor that creates restore points for the "Previous Version" is System Restore. According to Microsoft:
Previous versions are automatically saved as part of a restore point

So I went digging around and found it in Task Scheduler under: Microsoft -> Windows -> SystemRestore. I then proceeded to modify the trigger so that it will only run at startup and every 1 hour indefinitely. I further removed all conditions to make sure that it runs. Furthermore I manually run it from the Task Scheduler.

I then did a test. I created a non-empty text file on the desktop. Then I ran the task manually from the Task Scheduler and waited till it's status is Ready.

I then proceeded to delete this text file and tried to use "Previous Version" on the Desktop folder but it says "No previous versions are available".

At this point I wanted to explore the shadow copy itself to see what is being captured and what is not. I found a way to do it directly by creating a symbolic link to it as explained here. I cannot find the file that I have deleted and therefore I concluded that it was not captured by the System Restore.

Therefore:
1) Is my assumption that System Restore which creates Restore Points which contains the previous versions of the files on my system correct?

2) I am not sure if running System Restore actually creates a Restore Point. Is there a way for me verify if a new Restore Point has been created?

3) Assuming that it doesn't create a Restore Point, is there a way for me to force it to? By changing registry values? Settings? Passing specific parameters?

What I suspect is happening is that System Restore do create Restore Points but there is an internal setting somewhere limiting creation of new Restore Points dependent on the time of the last created Restore Point.

Another approach to get this working, from the System Protection tab in System one can manually create a Restore Point. I might consider creating a task in Task Scheduler that replicates manually creating the Restore Point but I am not sure how to create that task.

I hope someone can give me some pointers. Thanks in advance!
 

My Computer

OS
Windows 7 Ultimate x64
One major issue you will have to take into account is that although, both Restore Points and Previous Versions use the VSS service, they operate on different file sets.
Restore points do not include any user data, but just back-up system settings, the previous versions is designed for user files.

you should be able to create a system restore point at regular intervals by use of the Task Scheduler

you could set-up a regular incremental system backup to run hourly with either the built-in or a 3rd party app which should run quickly and back-up system and data though this will duplicate the functions already in-place
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    ChillBlast - Custom to my design
    OS
    Windows 11 Pro x64 [Latest Release and Release Preview]
    CPU
    Ryzen 9 5950X, 3.8 - 5.2 MHz
    Motherboard
    Asus Prime X570-Pro
    Memory
    64GB [2 x 32GB] DDR4 3200MHz
    Graphics Card(s)
    4GB NVIDIA GEFORCE GTX 1650 Ti
    Sound Card
    On-board SPDIF to 5.1 System + HDMI [5.1 system]
    Monitor(s) Displays
    32" UHD 32 Bit HDR Monitor + 43" UHD 4K 32Bit HDR TV
    Screen Resolution
    2 x 3840 x 2160 @60Hz
    Hard Drives
    1TB M2 SSD OS, 500GB Fast Access SSD, 2 x 8TB Data + Various Externals from 1TB to 4TB, 10TB NAS
    PSU
    NZXT C750 80 PLUS Gold 750W Modular PSU
    Case
    Workstation Case [Matt Black]
    Cooling
    NZXT Kraken X63 280mm CPU Cooler +2x Quiet Case fans
    Keyboard
    Logitech Wireless MX Keys & K400 + others
    Mouse
    Logitech Wireless MX Master 3S
    Internet Speed
    920 MB Down 50 MB Up
    Antivirus
    BitDefender Total Security Pro
    Browser
    Chrome (always run latest Non-Beta)
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    Samsung 10.2" tablet
    Blackview TAB 8 4G Android Tablet c/w Keyboard
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control
  • Computer type
    Laptop
    System Manufacturer/Model Number
    Dell XPS 17 10750H
    OS
    Windows 11 Pro x64 Latest RP
    CPU
    Intel I7 10750H 5.0GHz
    Motherboard
    Dell XPS
    Memory
    32GB [2x16GB] DDR4 2933 MHz
    Graphics Card(s)
    nVidia GTX1650Ti 4 GB GDDR6
    Sound Card
    Stock [Realtek] 4 Speaker
    Monitor(s) Displays
    17" IPS UHD+ Infinity Edge Touchscreen
    Screen Resolution
    3840 x 2400
    Hard Drives
    2TB M2 NVMe, 4TB External + various 500GB & 1TB External NVMe (also have access to spinner HDD from
    PSU
    Stock
    Case
    Stock XPS Aluminium & Carbon Fibre
    Cooling
    Stock - Active Fan Control
    Keyboard
    Backlit + Various Logitech
    Mouse
    Stock Track Pad + Logitech MX Trackball
    Internet Speed
    72 MB Down 18MB Up
    Browser
    Chrome
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    10.2" tablet
    Sony Z3 Android Smartphone
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control Pad
    10TB NAS

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Hewlett-Packard/G62-107SA Notebook
OS
Microsoft Windows 7 Home Premium 64-bit Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz
Motherboard
Hewlett-Packard 1425
Memory
8 GB DDR3
Graphics Card(s)
Intel(R) HD Graphics
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Builtin
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
250 GB SATA Hard Disk Drive 7200 rpm
2TB Seagate GoFlex USB 2 Drive
1TB Iomega Prestige USB 2 Drive
1.5TB Iomega Prestige USB 2 Drive (Samsung)
2TB WD MyBook Live NAS.
Mouse
Logitech Anywhere MX
Internet Speed
152 Mbs download 10 Mbs upload
Antivirus
Norton 360
Browser
Chrome
I think the standard windows RP task checks to ensure that at least one RP is created per week. You could try the shortcut in this tutorial and create a scheduled task for it. It works, I have it running to create one every day.
http://www.sevenforums.com/tutorials/494-system-restore-point-shortcut.html

Not sure if it creates previous versions though.

It does seem to create previous versions so your scenario should work. The caveat though is that does not replace a proper file backup as an image backup as opposed to a clone does not back up shadow storage so on restoration all RPs are lost. The other problem is that you will quickly fill up your assigned shadow storage.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Hewlett-Packard/G62-107SA Notebook
OS
Microsoft Windows 7 Home Premium 64-bit Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz
Motherboard
Hewlett-Packard 1425
Memory
8 GB DDR3
Graphics Card(s)
Intel(R) HD Graphics
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Builtin
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
250 GB SATA Hard Disk Drive 7200 rpm
2TB Seagate GoFlex USB 2 Drive
1TB Iomega Prestige USB 2 Drive
1.5TB Iomega Prestige USB 2 Drive (Samsung)
2TB WD MyBook Live NAS.
Mouse
Logitech Anywhere MX
Internet Speed
152 Mbs download 10 Mbs upload
Antivirus
Norton 360
Browser
Chrome
Time machine got a killer look :p

There are a lot of third party apps for windows that can do the same thing as Time machine does, like Macrium Reflect, Acronis True Image, Norton Ghost and Comodo Time Machine, but you will not get that looks !
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Assembled
OS
Microsoft Windows 10 Pro Insider Preview 64-bit
CPU
Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz
Motherboard
Gigabyte Technology Co., Ltd. B85M-D3H
Memory
Corsair Vengence 4GB x2 (8.00GB Dual-Channel DDR3 @ 798MHz)
Graphics Card(s)
2047MB GeForce GTS 450 (ZOTAC International)
Sound Card
Onboard (Realtek High Definition Audio)
Monitor(s) Displays
LG Flatron E2040T
Screen Resolution
1600x900
Hard Drives
Western Digital 1 TB
Seagate 500 GB
PSU
Corsair VS550
Case
Cooler Master K380
Cooling
Cooler Master Seidon 120V Plus
Keyboard
Logitech MK260r
Mouse
Logitech MK260r
Internet Speed
PMPL Broadband
Antivirus
Windows Defender + MBAM
Browser
Firefox
Other Info
Dell Studio 15" Laptop

My Computer

Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
kado897: Thanks for the link to the VBScript it works perfectly. I have scheduled the script to run every hour.

I do understand that this is not a real backup solution because it is stored on the same hard drive. But I don't intend it to be a real backup solution, I want to be able to recover files that I have accidentally deleted and/or modified so that at worst I loose 1 hour of work.

Furthermore, I don't mind it filling up my assigned shadow storage because if I am not mistaken it will start deleting old shadow volumes to make room for the new shadow volumes. Again as I said earlier it is not meant to be real backup solution.

Though for my next weekend project I might try to get the shadow volumes saved in an external hard drive which require some coding work. I have seen APIs that will allow me to control VSS through Windows Management Instrumentation. I have read online of people speculating that some of the backup software available actually uses VSS to do the backup for them.

Thanks again! =)
 

My Computer

OS
Windows 7 Ultimate x64
That's good to know. Personally I don't make so many changes that I need an hourly "backup" so I have it scheduled to run once a day. If I need an interim RP I've also got the shortcut conveniently placed. I've also set it up so that if the PC is off at the scheduled time it will run when logged back in.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Hewlett-Packard/G62-107SA Notebook
OS
Microsoft Windows 7 Home Premium 64-bit Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 330 @ 2.13GHz
Motherboard
Hewlett-Packard 1425
Memory
8 GB DDR3
Graphics Card(s)
Intel(R) HD Graphics
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
Builtin
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
250 GB SATA Hard Disk Drive 7200 rpm
2TB Seagate GoFlex USB 2 Drive
1TB Iomega Prestige USB 2 Drive
1.5TB Iomega Prestige USB 2 Drive (Samsung)
2TB WD MyBook Live NAS.
Mouse
Logitech Anywhere MX
Internet Speed
152 Mbs download 10 Mbs upload
Antivirus
Norton 360
Browser
Chrome
Time machine got a killer look :p

There are a lot of third party apps for windows that can do the same thing as Time machine does, like Macrium Reflect, Acronis True Image, Norton Ghost and Comodo Time Machine, but you will not get that looks !

That's not entirely true. Macrium Reflect and Acronis True Image offer general backup schemes as well as the ability to create a drive image you can use to restore your whole system from. Norton Ghost only offers general backup schemes and no longer offers a way to back up an image of the whole system to restore from.

Comodo Time Machine, works like Rollback RX, both different from the 3 above. They create a type of restore point called a snapshot similar to a drive image that can only reside in a protected area of your hard disk in a layer of the drive underneath the windows partition.

These programs set up their own operating system shell to boot before windows boots. This Mini OS is used to restore the snapshot from in case your windows won't boot. This is great for when a virus wipes out your entire C drive or windows partition. the C drive can be completely deleted, and this system will boot and restore your whole windows OS, just like you left it from your last snapshot, in about 10 minutes. This is really awesome great security - when it works.

I have used all of these programs and for these last two Comodo Time Machine and Rollback RX the problem comes when they fail to work properly or not restore the snapshot.. your sunk with no way to recover - unless you have another disk image to restore from on dvd or a network. In other words, use them for everyday use, but don't rely on them too heavily. Always have a current backup image on hand, just in case.

One big advantage with these when they work over a regular windows system restore point is that they are not on the C drive. A virus cannot touch them to corrupt or delete them.

CapslockWizard, yes Marcium Reflect, Paragon backup & restore, Easus ToDo Backup, Acronis true image, DriveImage XML and others all use the VSS " shadow copy" system from Win 7 to make their Images. They in this respect are little more than front ends for Win 7's VSS with a few added backup features thrown in of their own. I have recently had trouble using everyone of these apps to image a freshly installed Win 7 and they all failed for one reason or another. I wasted 20 dvd's and 2 days fighting with it. Then I learned about the built in Image creation and restore of Win 7 and this worked flawlessly. I suspect that some of those extras in those programs conflicted with Win 7's VSS and caused the images to fail.
 

My Computer

Computer Manufacturer/Model Number
Compaq Presario CQ61 411WM
OS
Windows 7 64bit Home Premium Enhanced
CPU
2.1GHz AMD Sempron M120 Processor
Motherboard
Hewlett-Packard 363F with Insyde Software F.13 Bios
Memory
2x 2048MB 400.0 MHz PC2-6400 DDR2-SDRAM Micron Tech (4Gig)
Graphics Card(s)
ATI Mobility RADEON HD4200 336 MB DDR2 share 1.2 Gigs 494Mhz
Sound Card
ATI SB600-IDT High Definition Audio Controller
Monitor(s) Displays
AUO B156XW01 V2 15.6 in 1366x768 @ 60Hz Aspect Ratio 16:9
Hard Drives
Hitachi HTS725025A9A364 250 GB 7200 RPM
Back
Top