trs-file-backup
trs-file-backup automatically watches your working directories and creates timestamped backups of every changed file — purely local, no cloud, no sync service, no complex setup. Ideal for developers and creators who want a simple safety net while working on files that are not (yet) in version control.
Requirements
- Python 3.13.17 or higher
- OS: Windows, Linux, macOS
Features
- 📁 Top-Level Monitoring (subdirectory support planned): Monitors files directly in the source directory
- 📦 Flat Backup Structure: All backups stored in one directory for easy access
- 🔄 Incremental Backups: Only backup files that have changed
- 🕐 Timestamped Files: Each backup uses format
filename_YYYY_MM_DD__HH_MM_SS.ext - 👁️ Watch Mode: Continuously monitor directories and backup automatically
- ⏱️ Configurable Debounce: Adjustable delay before backup (default: 2 seconds)
- 🎯 Smart Exclusions: Automatically skip hidden files
- 🚫 Custom Patterns: Exclude specific files with wildcard patterns
- 📊 State Tracking: Maintain backup history in
.backup_state.json(stored in backup directory) - 📝 Activity Logging: All operations logged to
backup.logwith timestamps - 🔍 Dry-Run Mode: Preview changes before backing up
Quick Start
Installation
Install this via pip (or your favorite package manager):
pip install trs-file-backup
Basic Usage
# Initialize backup tracking
trs-file-backup init --source ./myproject --destination ./backup
# One-time backup of modified files
trs-file-backup run --source ./myproject --destination ./backup
# Continuous monitoring (watch mode)
trs-file-backup watch --source ./myproject --destination ./backup
# Exclude specific patterns
trs-file-backup run --source ./myproject --destination ./backup --exclude "*.log" --exclude "temp_*"
# Custom debounce delay (wait 5 seconds before backup)
trs-file-backup run --source ./myproject --destination ./backup --debounce 5
# Preview without copying
trs-file-backup run --source ./myproject --destination ./backup --dry-run
# Get help
trs-file-backup --help
trs-file-backup run --help
Example Output
Original file: report.txt
Backup file: report_2026_01_13__14_30_22.txt
Commands
init: Initialize backup tracking for a directoryrun: Execute a one-time backup of modified fileswatch: Continuously monitor and backup files in real-time
Use trs-file-backup COMMAND --help for detailed information on each command.
Contributing
Contributions are welcome! See CONTRIBUTING.md for setup instructions, commit conventions, and the release process.
Metadata
Release files for trs-file-backup 3.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trs_file_backup-3.0.1.tar.gz | 144.0 kB | With provenance | Details for trs_file_backup-3.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trs_file_backup-3.0.1-py3-none-any.whl | Python 3 | none | any | Details for trs_file_backup-3.0.1-py3-none-any.whl |
Total release size: 156.6 kB
Release files / trs_file_backup-3.0.1.tar.gz
| Download URL | trs_file_backup-3.0.1.tar.gz |
|---|---|
| Size | 144.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b72fb70eac857e9ed19eb3c765a5e1bc180ee78da63874c3a87212dc7ddd4086
|
|
BLAKE2b-256 checksum How to use checksums |
1eac744f2a6dfeb3330e5465c24126144759945d2c6e6528a902f87a00595bd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logRelease files / trs_file_backup-3.0.1-py3-none-any.whl
| Download URL | trs_file_backup-3.0.1-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7dee59e28a2d5296d513f4b28eb5053446ba458fb38fa77d9c57cdc91ded8517
|
|
BLAKE2b-256 checksum How to use checksums |
8301a672e752328fdf3ac15ef4f3b04e3358dbdc41c5a6674e4b570ef918382f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logSecurity for trs-file-backup 3.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for trs_file_backup-3.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.