Copy-on-Write Filesystem - a FUSE-based versioning filesystem
Project description
COWFS - Copy-on-Write Filesystem
A userspace Copy-on-Write filesystem built with FUSE. Every write transparently creates a new version - enabling instant restore, snapshot tagging, and content deduplication.
Status
- Core FUSE read/write path implemented
- Version history + restore implemented
- GC implemented (
--dry-run,--keep-last,--before) - Snapshot lifecycle implemented (
create,list,show,restore,delete) - GitHub Actions CI workflow added (tests + coverage + required static analysis)
- Tag-based PyPI publishing implemented and validated (
cowfs0.2.1 live)
Quick Start
pip install cowfs
# Mount
cowfs mount ~/storage ~/mnt
# Use like a normal filesystem
echo "hello" > ~/mnt/test.txt
echo "world" > ~/mnt/test.txt
# Inspect version history and stats
cowfs history /test.txt --storage ~/storage
cowfs stats --storage ~/storage
cowfs log --storage ~/storage --limit 20
# Restore to an older version
cowfs restore /test.txt --version 1 --storage ~/storage
# Create and inspect snapshot
cowfs snapshot create baseline --storage ~/storage
cowfs snapshot list --storage ~/storage
cowfs snapshot show baseline --storage ~/storage
# Restore filesystem to snapshot
cowfs snapshot restore baseline --storage ~/storage
# keep files created after snapshot:
cowfs snapshot restore baseline --keep-new --storage ~/storage
# Garbage collection
cowfs gc --storage ~/storage --dry-run
cowfs gc --storage ~/storage --keep-last 3
cowfs gc --storage ~/storage --before "2026-01-01 00:00:00"
# Unmount when done
cowfs umount ~/mnt
CLI Commands
cowfs mount <storage_dir> <mount_point> [--debug]
cowfs umount <mount_point>
cowfs history <file_path> --storage <storage_dir> [--json]
cowfs restore <file_path> (--version <n> | --before "<datetime>") --storage <storage_dir> [--dry-run] [--json]
cowfs log --storage <storage_dir> [--limit <n>] [--action <name>] [--path-prefix <prefix>] [--since "<datetime>"] [--until "<datetime>"] [--json]
cowfs stats --storage <storage_dir> [--json]
cowfs gc --storage <storage_dir> [--dry-run] [--keep-last <n>] [--before "<datetime>"] [--json]
cowfs snapshot create <name> [--description "..."] --storage <storage_dir> [--json]
cowfs snapshot list --storage <storage_dir> [--json]
cowfs snapshot show <name> --storage <storage_dir> [--json]
cowfs snapshot restore <name> [--keep-new] --storage <storage_dir> [--dry-run] [--json]
cowfs snapshot delete <name> --storage <storage_dir> [--json]
Development
git clone https://github.com/yourusername/cowfs.git
cd cowfs
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytest
Release
- Tag-based publishing is configured in
.github/workflows/publish.yml. - See full release instructions in RELEASE.md.
- Expected tag format:
vX.Y.Z(example:v0.2.0).
Release Checklist
# 1) bump version in pyproject.toml (example: 0.2.2)
git add pyproject.toml
git commit -m "Release 0.2.2"
git push origin master
# 2) create matching release tag
git tag v0.2.2
git push origin v0.2.2
# 3) after Publish workflow succeeds, verify install
pip install -U cowfs==0.2.2
Requirements
- Linux with FUSE support (
libfuse3-dev) - Python 3.11+
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cowfs-0.2.4.tar.gz.
File metadata
- Download URL: cowfs-0.2.4.tar.gz
- Upload date:
- Size: 44.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
055b455a1de29cf3e184b4d421fd72fc628e89a2d704f462b42fc7f8b19e780a
|
|
| MD5 |
d4a1d19228eb167210c6f65600a45064
|
|
| BLAKE2b-256 |
ec76b8c631983cdcc61d73b9e945131622f433fd95ef814e03f17ffa4834c50c
|
Provenance
The following attestation bundles were made for cowfs-0.2.4.tar.gz:
Publisher:
publish.yml on atikulmunna/COW-Filesystem
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cowfs-0.2.4.tar.gz -
Subject digest:
055b455a1de29cf3e184b4d421fd72fc628e89a2d704f462b42fc7f8b19e780a - Sigstore transparency entry: 1005159630
- Sigstore integration time:
-
Permalink:
atikulmunna/COW-Filesystem@ba7c6216d9ae087e576eccfb91a6442bb6b647f9 -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/atikulmunna
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ba7c6216d9ae087e576eccfb91a6442bb6b647f9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file cowfs-0.2.4-py3-none-any.whl.
File metadata
- Download URL: cowfs-0.2.4-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b8402e0a4f7a5407358c1389d27e23effc2ab7cd4e14b41f0f17e09a96f4db6
|
|
| MD5 |
94729880e5bc652c98f569845ac1755c
|
|
| BLAKE2b-256 |
796fd2e1b7d203a1d92622e5eec521b80ae52df80dd1c917da284c6a895436c1
|
Provenance
The following attestation bundles were made for cowfs-0.2.4-py3-none-any.whl:
Publisher:
publish.yml on atikulmunna/COW-Filesystem
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cowfs-0.2.4-py3-none-any.whl -
Subject digest:
7b8402e0a4f7a5407358c1389d27e23effc2ab7cd4e14b41f0f17e09a96f4db6 - Sigstore transparency entry: 1005159639
- Sigstore integration time:
-
Permalink:
atikulmunna/COW-Filesystem@ba7c6216d9ae087e576eccfb91a6442bb6b647f9 -
Branch / Tag:
refs/tags/v0.2.4 - Owner: https://github.com/atikulmunna
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ba7c6216d9ae087e576eccfb91a6442bb6b647f9 -
Trigger Event:
push
-
Statement type: