New answers tagged xattr
You can run inoticoming to watch for files placed in the directory and automatically run any command, in this case chattr. (note linux specific)
Ext2 and family (including ext4) reserve an attribute for compression but don't implement it. This feature was originally put off because there were more urgent things to do, and then it became obsolescent as the size of storage media increased a lot faster than the size of data that isn't already compressed. Most large files today (videos, music, even word ...
You could create a container file that contains a filesystem providing compression (like zfs). It's not very flexible but pretty simple and probably set up within a few minutes. Just google for luks and container to find how to work with container files. Replacing the luks stuff with your favourite filesystem should be rather simple.
Top 50 recent answers are included