2018-04-28 12:46:27 +02:00
|
|
|
|
---
|
|
|
|
|
title: "rclone link"
|
2020-05-16 16:11:55 +02:00
|
|
|
|
description: "Generate public link to file/folder."
|
2022-12-20 18:16:14 +01:00
|
|
|
|
versionIntroduced: v1.41
|
2020-02-10 13:31:45 +01:00
|
|
|
|
# autogenerated - DO NOT EDIT, instead edit the source code in cmd/link/ and as part of making a release run "make commanddocs"
|
2018-04-28 12:46:27 +02:00
|
|
|
|
---
|
2020-05-22 12:17:37 +02:00
|
|
|
|
# rclone link
|
2018-04-28 12:46:27 +02:00
|
|
|
|
|
|
|
|
|
Generate public link to file/folder.
|
|
|
|
|
|
2020-05-22 12:17:37 +02:00
|
|
|
|
## Synopsis
|
2018-04-28 12:46:27 +02:00
|
|
|
|
|
2020-09-02 17:59:04 +02:00
|
|
|
|
rclone link will create, retrieve or remove a public link to the given
|
|
|
|
|
file or folder.
|
2018-04-28 12:46:27 +02:00
|
|
|
|
|
|
|
|
|
rclone link remote:path/to/file
|
|
|
|
|
rclone link remote:path/to/folder/
|
2020-09-02 17:59:04 +02:00
|
|
|
|
rclone link --unlink remote:path/to/folder/
|
|
|
|
|
rclone link --expire 1d remote:path/to/file
|
|
|
|
|
|
|
|
|
|
If you supply the --expire flag, it will set the expiration time
|
|
|
|
|
otherwise it will use the default (100 years). **Note** not all
|
|
|
|
|
backends support the --expire flag - if the backend doesn't support it
|
|
|
|
|
then the link returned won't expire.
|
|
|
|
|
|
|
|
|
|
Use the --unlink flag to remove existing public links to the file or
|
|
|
|
|
folder. **Note** not all backends support "--unlink" flag - those that
|
|
|
|
|
don't will just ignore it.
|
2018-04-28 12:46:27 +02:00
|
|
|
|
|
2020-09-02 17:59:04 +02:00
|
|
|
|
If successful, the last line of the output will contain the
|
|
|
|
|
link. Exact capabilities depend on the remote, but the link will
|
|
|
|
|
always by default be created with the least constraints – e.g. no
|
|
|
|
|
expiry, no password protection, accessible without account.
|
2018-04-28 12:46:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
rclone link remote:path [flags]
|
|
|
|
|
```
|
|
|
|
|
|
2020-05-22 12:17:37 +02:00
|
|
|
|
## Options
|
2018-04-28 12:46:27 +02:00
|
|
|
|
|
|
|
|
|
```
|
2021-06-08 17:57:04 +02:00
|
|
|
|
--expire Duration The amount of time that the link will be valid (default off)
|
2020-09-02 17:59:04 +02:00
|
|
|
|
-h, --help help for link
|
|
|
|
|
--unlink Remove existing public link to file/folder
|
2018-04-28 12:46:27 +02:00
|
|
|
|
```
|
|
|
|
|
|
2023-08-02 11:02:38 +02:00
|
|
|
|
|
2019-06-20 17:18:02 +02:00
|
|
|
|
See the [global flags page](/flags/) for global options not listed here.
|
|
|
|
|
|
2023-08-02 11:02:38 +02:00
|
|
|
|
# SEE ALSO
|
2018-04-28 12:46:27 +02:00
|
|
|
|
|
2018-10-15 12:03:08 +02:00
|
|
|
|
* [rclone](/commands/rclone/) - Show help for rclone commands, flags and backends.
|
2018-04-28 12:46:27 +02:00
|
|
|
|
|