https://github.com/benapetr/compress
btrfs user space tool that makes it possible to change the +c flags recursively on existing files and move their data to effectively activate the compression
https://github.com/benapetr/compress
Last synced: about 1 year ago
JSON representation
btrfs user space tool that makes it possible to change the +c flags recursively on existing files and move their data to effectively activate the compression
- Host: GitHub
- URL: https://github.com/benapetr/compress
- Owner: benapetr
- License: other
- Created: 2015-03-21T09:39:10.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-11-08T20:27:55.000Z (over 1 year ago)
- Last Synced: 2025-03-31T11:01:43.982Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 16
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# compress
btrfs tool that makes it possible to change the +c flags recursively on existing files
# compress vs btrfs-progs
There are some tricks to perform compression of existing files and folder in more efficient way using btrfs userspace tools,
they are however very hard to use, require you to read incredibly long manuals and require deep knowledge and understanding
of btrfs. They also require you to have superuser rights.
compress is, on other hand, designed for average users, who simply want to enjoy transparent compression on linux just as Windows
users can. You can simply compress whole folder (as long as it belongs to you) with no need for superuser as this:
```
# -r is enough, but shows no progress
compress -vr some_folder
```
# installation
sudo cp src/compress /usr/local/bin
# known issues
compress doesn't check if files that are being compressed are open or not, it's not recommended to use compress on files that are open by other processes, since compress will unlink them, resulting in open file descriptors to deleted files.