From 7c20ec3772300186620d15bf1e9335495dc111e1 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 28 Mar 2024 11:56:22 +0000 Subject: [PATCH] local: fix and update -l docs See: https://forum.rclone.org/t/rclone-l-cloning-symlink-file-problem/45286/ --- docs/content/local.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/content/local.md b/docs/content/local.md index d45fefb89..bef94be15 100644 --- a/docs/content/local.md +++ b/docs/content/local.md @@ -237,7 +237,7 @@ $ tree /tmp/a Copying the entire directory with '-l' ``` -$ rclone copyto -l /tmp/a/file1 remote:/tmp/a/ +$ rclone copy -l /tmp/a/ remote:/tmp/a/ ``` The remote files are created with a '.rclonelink' suffix @@ -261,7 +261,7 @@ $ rclone cat remote:/tmp/a/file2.rclonelink Copying them back with '-l' ``` -$ rclone copyto -l remote:/tmp/a/ /tmp/b/ +$ rclone copy -l remote:/tmp/a/ /tmp/b/ $ tree /tmp/b /tmp/b @@ -280,6 +280,16 @@ $ tree /tmp/b └── file2.rclonelink ```` +If you want to copy a single file with `-l` then you must use the `.rclonelink` suffix. + +``` +$ rclone copy -l remote:/tmp/a/file1.rclonelink /tmp/c + +$ tree /tmp/c +/tmp/c +└── file1 -> ./file4 +``` + Note that this flag is incompatible with `-copy-links` / `-L`. ### Restricting filesystems with --one-file-system