On Tue, 2006-01-17 at 00:06 -0500, N.J. Thomas wrote: > Given two directories "foo" and "fooprime", can I have rsync make a file > or directory "d", that contains the differences between these two > directories such that I can take d and apply it to foo to get fooprime, > or take fooprime and reverse-apply d to it to get foo?
Yes. Run: rsync <options> --only-write-batch=d fooprime/ foo/ That will generate an rsync batch file called "d" containing the necessary information to turn a foo into a fooprime and a shell script "d.sh" that will convert a given foo into a fooprime by reading "d". To convert a foo, just run "d.sh". Batch files are one way, however: they include the actual data that is added or written at the destination and an indication of what data is deleted or replaced, but not the actual data that is deleted or replaced, You may want to generate two batch files, one that converts foo to fooprime and one that converts fooprime to foo. -- Matt McCutchen, ``hashproduct'' [EMAIL PROTECTED] -- http://mysite.verizon.net/hashproduct/ -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html