From 33f302a06b9329774320c817471b05580f028bb1 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 26 Jun 2017 16:13:12 +0100 Subject: [PATCH] Document workaround for files/dirs with : in - fixes #1331 --- docs/content/docs.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/content/docs.md b/docs/content/docs.md index 428aa5c5a..2fde75ee7 100644 --- a/docs/content/docs.md +++ b/docs/content/docs.md @@ -156,6 +156,23 @@ If you are using the root directory on its own then don't quote it rclone copy E:\ remote:backup +Copying files or directories with `:` in the names +-------------------------------------------------- + +rclone uses `:` to mark a remote name. This is, however, a valid +filename component in non-Windows OSes. The remote name parser will +only search for a `:` up to the first `/` so if you need to act on a +file or directory like this then use the full path starting with a +`/`, or use `./` as a current directory prefix. + +So to sync a directory called `sync:me` to a remote called `remote:` use + + rclone sync ./sync:me remote:path + +or + + rclone sync /full/path/to/sync:me remote:path + Server Side Copy ----------------