2018-09-01 13:58:00 +02:00
|
|
|
---
|
|
|
|
title: "rclone copyurl"
|
2020-05-16 16:11:55 +02:00
|
|
|
description: "Copy url content to dest."
|
2018-09-01 13:58:00 +02:00
|
|
|
slug: rclone_copyurl
|
|
|
|
url: /commands/rclone_copyurl/
|
2022-12-20 18:16:14 +01:00
|
|
|
versionIntroduced: v1.43
|
2020-02-10 13:31:45 +01:00
|
|
|
# autogenerated - DO NOT EDIT, instead edit the source code in cmd/copyurl/ and as part of making a release run "make commanddocs"
|
2018-09-01 13:58:00 +02:00
|
|
|
---
|
2020-05-22 12:17:37 +02:00
|
|
|
# rclone copyurl
|
2018-09-01 13:58:00 +02:00
|
|
|
|
|
|
|
Copy url content to dest.
|
|
|
|
|
2020-05-22 12:17:37 +02:00
|
|
|
## Synopsis
|
2018-09-01 13:58:00 +02:00
|
|
|
|
|
|
|
|
2020-02-01 11:31:42 +01:00
|
|
|
Download a URL's content and copy it to the destination without saving
|
|
|
|
it in temporary storage.
|
2018-09-01 13:58:00 +02:00
|
|
|
|
2022-07-09 19:08:20 +02:00
|
|
|
Setting `--auto-filename` will attempt to automatically determine the filename from the URL
|
|
|
|
(after any redirections) and used in the destination path.
|
|
|
|
With `--auto-filename-header` in
|
|
|
|
addition, if a specific filename is set in HTTP headers, it will be used instead of the name from the URL.
|
|
|
|
With `--print-filename` in addition, the resulting file name will be printed.
|
2020-02-01 11:31:42 +01:00
|
|
|
|
2021-03-31 20:12:08 +02:00
|
|
|
Setting `--no-clobber` will prevent overwriting file on the
|
2020-04-19 13:40:17 +02:00
|
|
|
destination if there is one with the same name.
|
|
|
|
|
2021-03-31 20:12:08 +02:00
|
|
|
Setting `--stdout` or making the output file name `-`
|
|
|
|
will cause the output to be written to standard output.
|
2019-10-26 12:04:54 +02:00
|
|
|
|
2018-09-01 13:58:00 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
rclone copyurl https://example.com dest:path [flags]
|
|
|
|
```
|
|
|
|
|
2020-05-22 12:17:37 +02:00
|
|
|
## Options
|
2018-09-01 13:58:00 +02:00
|
|
|
|
|
|
|
```
|
2022-07-09 19:08:20 +02:00
|
|
|
-a, --auto-filename Get the file name from the URL and use it for destination file path
|
|
|
|
--header-filename Get the file name from the Content-Disposition header
|
|
|
|
-h, --help help for copyurl
|
|
|
|
--no-clobber Prevent overwriting file with same name
|
|
|
|
-p, --print-filename Print the resulting name from --auto-filename
|
|
|
|
--stdout Write the output to stdout rather than a file
|
2018-09-01 13:58:00 +02:00
|
|
|
```
|
|
|
|
|
2019-06-20 17:18:02 +02:00
|
|
|
See the [global flags page](/flags/) for global options not listed here.
|
|
|
|
|
2020-05-22 12:17:37 +02:00
|
|
|
## SEE ALSO
|
2018-09-01 13:58:00 +02:00
|
|
|
|
2018-10-15 12:03:08 +02:00
|
|
|
* [rclone](/commands/rclone/) - Show help for rclone commands, flags and backends.
|
2018-09-01 13:58:00 +02:00
|
|
|
|