Re: Trim option
Brought to you by:
thesun
From: Shachar S. <sh...@sh...> - 2007-01-20 18:28:29
|
David V. wrote: > Shachar, > > The trim option in rsyncrypto is a very smart and usefull feature. > It would be nice if it could also do something else : > > Suppose I ask rsyncrypto to crypt C:\folder1\folder2\folder3\ with the > -r option : > I will have > > folder1\folder2\folder3\folder4\ > folder1\folder2\folder3\folder4\folder5 > folder1\folder2\folder3\folder4\folder5\folder6 > > What I would like is the possibility to have > > folder4 > folder4\folder5 > folder4\folder5\folder6 That's what "--trim=4" does. > I dont know in advance the number of folders to trim. I would like > rsyncrypto to do it automatically. > Is this possible ? If you don't know how many directories to trim, how can rsyncrypto? > David V. I think you are mistaking rsyncrypto for something it isn't. Rsyncrypto is there for performing batch encrypting of files in an rsync friendly way. The only features that are planned to go in are those that are necessary for the encryption and for allowing batch operations. I would much rather complicated file manipulations to go in as a pre or a post stage. I think having rsyncrypto be able to do complicated file renames (beyond those that are part of the encryption process itself, as is the case with -n) is out of the scope of what rsyncrypto is meant to do. In much the same way, I don't think rsyncrypto should have more sophisticated file matching criteria. Doing "find whatever | rsyncrypto --filelist - foo bar whatever.crt" ought to be good enough (but it should have an option to pipe find's "-print0" output). This is on par with the fact that I don't think rsync should be able to do encryption. Shachar |