All of lore.kernel.org
 help / color / mirror / Atom feed
* New tool to recursive compress / decompress of files
@ 2015-03-21 17:56 Petr Bena
  2015-03-21 18:08 ` Hugo Mills
  2015-03-21 18:22 ` Roman Mamedov
  0 siblings, 2 replies; 10+ messages in thread
From: Petr Bena @ 2015-03-21 17:56 UTC (permalink / raw)
  To: linux-btrfs

Hi, I like the compress feature, but unlike NTFS, compressing files in
btrfs is not so simple. Just changing the flags using chattr will not
compress anything, only newly written data would be.

For this reason I decided to create a new tool that makes this simple,
you can find it here: https://github.com/benapetr/compress

It's very simple to use, for example to compress whole folder, you would do

compress -rv <folder_name>

the tool would recursively scan the folder, change all folders to +c
and copy all files, preserving attributes to a temporary file within
folder, then removes the original and move the copied, now fully
compressed file back.

It's written in python despite I loathe it (I am a C++ programmer),
because most of people love it for some reason, any because this would
make it more simple for people to deploy it and modify it.

The tool right now is in early alpha stage, probably full of bugs, I
made it few hours ago, but I would like to hear any feedback, whether
there would be any use for such a tool, feature requests etc :)

Thanks

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-03-25  1:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-21 17:56 New tool to recursive compress / decompress of files Petr Bena
2015-03-21 18:08 ` Hugo Mills
2015-03-21 18:12   ` Petr Bena
2015-03-21 18:16     ` Petr Bena
2015-03-25  1:49       ` David Sterba
2015-03-25  1:42     ` David Sterba
2015-03-21 18:22 ` Roman Mamedov
2015-03-21 18:25   ` Petr Bena
2015-03-21 18:26     ` Petr Bena
2015-03-21 19:27       ` Marc MERLIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.