On Tue, 2008-08-05 at 15:26 +0100, Eduardo Suárez wrote: > Is it possible to add a rule like > > dir-merge myconf/mybackuprules > > ? > > That is, the file to merge is in a subdirectory of directory where we > want the rules to apply.
Rsync doesn't currently support that, but it would be a very reasonable addition. After the change, a dir-merge path beginning with / or ../ would request a scan of parent directories, while any other dir-merge path would be saved as-is and followed from each directory to obtain rules for that directory. It looks like the place to implement this is in parse_merge_name in exclude.c. Simply changing the "if (fn != buf)" to also test for an initial "../" makes the "dir-merge myconf/mybackuprules" example work. However, parse_merge_name is called in three places, and the change might break other uses. Matt
signature.asc
Description: This is a digitally signed message part
-- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html