https://bugzilla.samba.org/show_bug.cgi?id=6197
Summary: Perms/owner/group modifiers for "show" filters Product: rsync Version: 3.1.0 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P3 Component: core AssignedTo: way...@samba.org ReportedBy: m...@mattmccutchen.net QAContact: rsync...@samba.org Add modifiers for "show" filters that affect the file-list attributes of matching files. I propose this syntax: - p(CHMOD-TWEAKS) : apply the CHMOD-TWEAKS like the --chmod option (overloaded with "perishable") - o(USER) : set the user owner to USER - g(GROUP) : set the group owner to GROUP Issues to be considered: - Interaction with --chmod, --chown, --usermap, --groupmap options - Per-dir merge files become more powerful, so copying from an untrusted source with a per-dir merge rule becomes more dangerous. Do we care? I am hoping to use this enhancement in the build process of my Web site. I have all the content in a "build tree" with makefiles to generate pages from a template. Then I call rsync with a bunch of filters to mirror a subset of the build tree to the Web server's document root. Different areas of the document root need different permissions: almost everything is 755/644, but as one notable exception, the /private dir is 711. I applied the desired permissions manually, but I want to make sure they don't get messed up. With this enhancement, I could add p(...) modifiers to the rsync filters to have it apply the permissions automatically on every build. For example: rsync -rltp --filter='Sp(u=rwX,go=X) /private' --filter='Sp(u=rwX,go=rX) *' \ build/ /var/www/html/ More generally, this enhancement could be used to implement any "make install"-like step with a single rsync run, which I feel would be a significant advance over install(1). With --delete-missing-args, "make uninstall" could probably be implemented as well. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact. -- 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