1 comment

  1. Hi,

    I think your recipe has issues with directories where their contents will be copied to the destination, instead of the directories themselves.

    Instead, what I ended up using is using the –filter rules:

    % rsync -av  --filter '+ .*' --filter '+ .*/**' --filter '- *' /home/mylogin/ /pat/to/dest/dir/

    What this does is that it says keep all files and directories that start with “.”, keep all files and directories inside a directory that start with “.”, and discard everything else.

    I confess I haven’t completely verified the result, but it seems to be doing the right thing.

    Have a question? Post it on our forum!