2018-09-01 11:58:00 +00:00
|
|
|
---
|
|
|
|
title: "rclone copyurl"
|
2024-03-10 11:22:43 +00:00
|
|
|
description: "Copy the contents of the URL supplied content to dest:path."
|
2022-12-20 17:16:14 +00:00
|
|
|
versionIntroduced: v1.43
|
2020-02-10 12:31:45 +00: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 11:58:00 +00:00
|
|
|
---
|
2020-05-22 10:17:37 +00:00
|
|
|
# rclone copyurl
|
2018-09-01 11:58:00 +00:00
|
|
|
|
2024-03-10 11:22:43 +00:00
|
|
|
Copy the contents of the URL supplied content to dest:path.
|
2018-09-01 11:58:00 +00:00
|
|
|
|
2020-05-22 10:17:37 +00:00
|
|
|
## Synopsis
|
2018-09-01 11:58:00 +00:00
|
|
|
|
|
|
|
|
2020-02-01 10:31:42 +00:00
|
|
|
Download a URL's content and copy it to the destination without saving
|
|
|
|
it in temporary storage.
|
2018-09-01 11:58:00 +00:00
|
|
|
|
2024-03-10 11:22:43 +00: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 10:31:42 +00:00
|
|
|
|
2021-03-31 18:12:08 +00:00
|
|
|
Setting `--no-clobber` will prevent overwriting file on the
|
2020-04-19 11:40:17 +00:00
|
|
|
destination if there is one with the same name.
|
|
|
|
|
2021-03-31 18:12:08 +00:00
|
|
|
Setting `--stdout` or making the output file name `-`
|
|
|
|
will cause the output to be written to standard output.
|
2019-10-26 10:04:54 +00:00
|
|
|
|
2024-03-10 11:22:43 +00:00
|
|
|
## Troublshooting
|
|
|
|
|
|
|
|
If you can't get `rclone copyurl` to work then here are some things you can try:
|
|
|
|
|
|
|
|
- `--disable-http2` rclone will use HTTP2 if available - try disabling it
|
|
|
|
- `--bind 0.0.0.0` rclone will use IPv6 if available - try disabling it
|
|
|
|
- `--bind ::0` to disable IPv4
|
|
|
|
- `--user agent curl` - some sites have whitelists for curl's user-agent - try that
|
|
|
|
- Make sure the site works with `curl` directly
|
|
|
|
|
|
|
|
|
2018-09-01 11:58:00 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
rclone copyurl https://example.com dest:path [flags]
|
|
|
|
```
|
|
|
|
|
2020-05-22 10:17:37 +00:00
|
|
|
## Options
|
2018-09-01 11:58:00 +00:00
|
|
|
|
|
|
|
```
|
2022-07-09 17:08:20 +00: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 11:58:00 +00:00
|
|
|
```
|
|
|
|
|
2023-08-02 09:02:38 +00:00
|
|
|
|
|
|
|
## Important Options
|
|
|
|
|
|
|
|
Important flags useful for most commands.
|
|
|
|
|
|
|
|
```
|
|
|
|
-n, --dry-run Do a trial run with no permanent changes
|
|
|
|
-i, --interactive Enable interactive mode
|
|
|
|
-v, --verbose count Print lots more stuff (repeat for more)
|
|
|
|
```
|
|
|
|
|
2019-06-20 15:18:02 +00:00
|
|
|
See the [global flags page](/flags/) for global options not listed here.
|
|
|
|
|
2023-08-02 09:02:38 +00:00
|
|
|
# SEE ALSO
|
2018-09-01 11:58:00 +00:00
|
|
|
|
2018-10-15 10:03:08 +00:00
|
|
|
* [rclone](/commands/rclone/) - Show help for rclone commands, flags and backends.
|
2018-09-01 11:58:00 +00:00
|
|
|
|