AARGH! I can't make rsync not copy dirs with --files-from option
wayned at samba.org
Sat Mar 14 23:42:22 GMT 2009
On Sat, Mar 14, 2009 at 04:11:12PM -0500, David C. Rankin wrote:
> Way too much path, way way too much path.
By default, all the path segments in the files-from file are a part of
the transfer unless you turn off the implied --relative option, in which
case no directory elements from the source paths are used. So, either
(1) move path elements out of the files-from file to the source dir arg,
(2) specify --no-relative and specify the full destination path to where
you want the directory files to go, or (3) insert a "/./" dir to specify
the cut point for files-from path information (but prior to 3.0.5 the
sender needs to be in the same dir as the source path to avoid a bug).
So, option 1 would mean stripping things like /var/cache/zypp/packages
from the start of the files-from paths and specifying that source path
on the command line as "/var/cache/zypp/packages" instead of "/".
In option 3, files-from lines would look like this:
Put that '/./' dir wherever you want to cut off the path info that is
included in the transfer.
More information about the rsync