I left the title intentionally vague, because I don't care about using specifically FTP or gz if any other tool will work better.
I have a lot of data that I access very rarely (movies I watched, backups, etc.) that I want to store on a home FTP server. I want to automatically compress all files I upload on the server and automatically decompress them when I download the files. I know I can just use
gzip -r on the server and
gzip -rd everything I download, but I'd prefer if the server was configured to do this itself seamlessly, so I could use it as if the files were stored decompressed.
Does FTPD or another file server have a functionality like this? A bonus point if the server keeps the decompressed file in a temporary storage until fully transferred, so things like streaming over FTP (using VLC) work without issues.