Treearrange: a compliment to rsync

Aug 27, 2006 22:59

My quick hack of the evening is treearrange, which rearranges a directory tree based on a description of a directory tree, which the tool also generates ( Read more... )

tech, hack

Leave a comment

jwz August 28 2006, 08:20:00 UTC
You know the file names are unique, so you don't need to hash: I do this kind of thing on the fly with a keyboard macro that generates "mv" commands...

Reply

iamo August 28 2006, 08:29:02 UTC
However, by using a fingerprint it's somewhat more flexible. It'll work even when the original structure of the two trees were not the same.

Reply

ciphergoth August 28 2006, 09:18:04 UTC
I would say that makes it less flexible, as well as somewhat slower.

I'd rather something that was the same "shape" as rsync (ie runs on both ends at once) that tries to move files around to make "rsync" work, based on a number of heuristics (file name, size, last modified date, first bytes, last bytes...) applied in order.

Reply

brad August 28 2006, 16:32:11 UTC
Yeah, that's what I wanted too, but I realized it was only a few minute problem if I did the minimal work first.

Later I can add an rsync-ish interface, maybe just ssh'ing to the remote host, running Perl, and piping the original script into it, so the other side doesn't even need treearrange.

Reply

brad August 28 2006, 16:32:28 UTC
Not necessarily. I was shooting with two cameras. Both Canons.

Reply


Leave a comment

Up