rsync unexpectedly removing ALL files

Wayne Davison wayned at
Sun Jun 12 22:50:09 UTC 2016

On Mon, Jun 6, 2016 at 8:52 AM, Koehn, Troy N. <TNKoehn at> wrote:

> One of the directories in the database actually looked like this:
> /home/usr/directory/./

In the manpage under the "--relative" option (which is implied by
--files-from) there is this information:

It is also possible to limit the amount of path information that is sent as
implied directories for each path you specify. With a modern rsync on the
sending side (beginning with 2.6.7), you can insert a dot and a slash into
the source path, like this:

rsync -avR /foo/./bar/baz.c remote:/tmp/

That would create /tmp/bar/baz.c on the remote machine. (Note that the dot
must be followed by a slash, so "/foo/." would not be abbreviated.)

Thus, your path tells rsync to take the contents of the /home/usr/directory
path and send its contents without any implied directories, which puts its
content at the root of the transfer.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the rsync mailing list