local: fix and update -l docs

See: https://forum.rclone.org/t/rclone-l-cloning-symlink-file-problem/45286/
This commit is contained in:
Nick Craig-Wood 2024-03-28 11:56:22 +00:00
parent 42914bc0b0
commit 7c20ec3772

View File

@ -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