Skip to content

About

Time Machine-style backups for Windows: snapshots as plain folder trees with NTFS hard links, time travel browser, WOF compression, installer, German/English, light/dark. Alpha: full system backup via VSS and a WinRE rescue drive.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

TimeBackupBox

Automatic backups with time travel for Windows 10/11 (x64), modelled on Apple's Time Machine. It backs up your folders every hour, day or week to an external drive or a network share. Every backup is a complete folder tree you can open in Explorer; unchanged files are NTFS hard links and take no extra space.

Deutsch: README.de.md

Alpha: the system backup (whole C: drive) and restoring with the rescue drive are still being tested. A first full run in a virtual machine has passed – backup, rescue drive, restore onto an empty disk, and the restored Windows starts – but not yet on real PCs. Keep a proven backup of your system as well. Backing up your folders is not affected.

TimeBackupBox main window in light mode: backup disk with oldest, latest and next backup, the backed-up folders and the whole-system backup marked alpha

Features

  • Hourly, daily, weekly or manual backups, from the tray; also on battery if you want
  • Time travel: browse every backup like a folder and bring back files or folders – replace, keep both or keep the original
  • Thinning like Time Machine: hourly backups for 24 hours, daily for a month, weekly after that; when the disk is full the oldest backup goes, the newest always stays
  • Space-saving: unchanged files are hard links; new files are compressed with Windows' own WOF compression (they stay readable in every program)
  • Checks the space needed before copying anything; optional size limit
  • Finds a USB drive again under a new drive letter, never writes to a different drive that got the old letter
  • Interrupted backups resume; locked files are skipped and reported
  • Sensible default exclusions (temp files, caches, recycle bin), plus your own folders, files or patterns
  • Optional BitLocker encryption of the backup drive (Windows' own wizard)
  • German and English (follows Windows), light and dark appearance
  • System backup (alpha): the whole C: drive from a VSS shadow copy, including open files, permissions, links and short names, run by a system service – the basis for restoring the complete PC
  • Rescue drive (alpha): a USB stick based on the PC's own Windows Recovery Environment that restores a system backup onto an empty or new disk and makes it bootable again

Time travel in dark mode: the Documents folder in today's backup, earlier backups stacked behind it, a timeline on the right, Restore button at the bottom

How it works

  • Store: <drive>\TimeBackupBox.backupdb\<computer>\yyyy-MM-dd-HHmmss\C\Users\… – each backup is a full folder tree.
  • Unchanged files (same size and modification time as in the previous backup) are carried over as hard links, so only changes take space. On exFAT/FAT32 every backup is a full copy.
  • Backed-up files are read-only: editing one would change every backup that shares it.
  • The system backup stores what a folder tree cannot carry in a sidecar file per backup (system.tbbmeta): security descriptors with owner and auditing, attributes, reparse data of junctions/symlinks/app aliases and 8.3 short names.
  • Restoring a system backup partitions the target disk like Windows Setup (UEFI: EFI, MSR, Windows), writes everything back – data, hard-link groups, links, then times, attributes and permissions bit for bit – points C: at the new partition and runs bcdboot.

Installing

TimeBackupBox-Setup.exe installs for all users into C:\Program Files\TimeBackupBox and asks once for administrator rights (for the system backup service). TimeBackupBox.exe also runs portable, then without system backup. Download: latest release. The files are not signed, so Windows SmartScreen warns on first start (“More info” → “Run anyway”).

Building

Requirements: Windows x64, .NET 10 SDK (found via scripts\Find-DotNet.ps1).

Command What it does
build.cmd core tests, build number +1, then dist\TimeBackupBox.exe, dist\TimeBackupBox-NET.exe, dist\TimeBackupBox-Rescue.exe and dist\TimeBackupBox-Setup.exe
test.cmd core tests only (real backups in %TEMP%, needs NTFS)
run.cmd debug build as a developer instance with its own data under .dev\data
src\TimeBackupBox.Core    backup engine, store, thinning, exclusions, restore, disks (no UI)
src\TimeBackupBox         WPF app: tray, settings, time travel; --engine = system service
src\TimeBackupBox.Rescue  rescue program (console): restore in the recovery environment, create the rescue drive
tests\TimeBackupBox.Tests core tests as a console program
installer\Setup.cs        installer (.NET Framework 4, C# 5, compiled with the csc.exe that ships with Windows)

The version lives in VERSION and BUILD_NUMBER. More details (in German) in README.de.md.

Background

TimeBackupBox follows the ideas of Time Machine – the store layout, thinning rules and the time-travel view – but is an independent program with its own code for Windows. It contains no Apple code.

License

MIT, see LICENSE.

About

Time Machine-style backups for Windows: snapshots as plain folder trees with NTFS hard links, time travel browser, WOF compression, installer, German/English, light/dark. Alpha: full system backup via VSS and a WinRE rescue drive.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages