From c2a59a97c4742561e0e62a5152d69c701dc98360 Mon Sep 17 00:00:00 2001 From: Josh Kuhn Date: Mon, 25 Nov 2013 15:10:59 -0500 Subject: [PATCH] Added note about .rsync-filter files, with example --- files/synchronize | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/files/synchronize b/files/synchronize index 947d5e3acf0..67e8f511510 100644 --- a/files/synchronize +++ b/files/synchronize @@ -109,6 +109,10 @@ notes: - The remote user for the dest path will always be the remote_user, not the sudo_user. - Expect that dest=~/x will be ~/x even if using sudo. + - To exclude files and directories from being synchronized, you may add + C(.rsync-filter) files to the source directory. + + author: Timothy Appnel ''' @@ -142,6 +146,11 @@ synchronize: src=some/relative/path dest=/some/absolute/path delete=yes # Synchronize using an alternate rsync command synchronize: src=some/relative/path dest=/some/absolute/path rsync_path="sudo rsync" + +# Example .rsync-filter file in the source directory +- var # exclude any path whose last part is 'var' +- /var # exclude any path starting with 'var' starting at the source directory ++ /var/conf # include /var/conf even though it was previously excluded '''