Skip to content

rsync-time-machine

Time Machine-style backups using rsync

Introducing rsync-time-machine.py - a Python port of the rsync-time-backup script, offering Time Machine-style backups using rsync. It creates incremental backups of files and directories to the destination of your choice. The backups are structured in a way that makes it easy to recover any file at any point in time. ๐Ÿš€

It works on Linux, macOS, and Windows (via WSL or Cygwin). The main advantage over Time Machine is flexibility, as it can backup from/to any filesystem and works on any platform. You can also backup to a Truecrypt drive without any problem. ๐Ÿ˜ƒ

rsync-time-machine.py is fully tested, has no external dependencies (only Python โ‰ฅ3.7 ๐Ÿ), is fully compatible with rsync-time-backup, offers pretty terminal output, and is fully typed! ๐ŸŽ‰

Features

  • ๐Ÿ“ Each backup is in its own folder named after the current timestamp.
  • ๐Ÿ”’ Backup to/from remote destinations over SSH.
  • ๐Ÿ”— Files that haven't changed from one backup to the next are hard-linked to the previous backup, saving space.
  • โš ๏ธ Safety check - the backup will only happen if the destination has explicitly been marked as a backup destination.
  • ๐Ÿ”„ Resume feature - if a backup has failed or was interrupted, the tool will resume from there on the next backup.
  • ๐Ÿšซ Exclude file - support for pattern-based exclusion via the --exclude-from rsync parameter.
  • ๐Ÿงน Automatically purge old backups based on a configurable expiration strategy.
  • ๐Ÿ”— "latest" symlink that points to the latest successful backup.

Support and Contributions

We appreciate your feedback and contributions! If you encounter any issues or have suggestions for improvements, please file an issue on the GitHub repository. We also welcome pull requests for bug fixes or new features.