rclone/docs/content/commands/rclone_copyurl.md

50 lines
1.4 KiB
Markdown
Raw Normal View History

2018-09-01 11:58:00 +00:00
---
title: "rclone copyurl"
description: "Copy url content to dest."
2018-09-01 11:58:00 +00:00
slug: rclone_copyurl
url: /commands/rclone_copyurl/
# 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
---
# rclone copyurl
2018-09-01 11:58:00 +00:00
Copy url content to dest.
## 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
2021-06-08 15:57:04 +00:00
Setting `--auto-filename` will cause the file name to be retrieved from
the URL (after any redirections) and used in the destination
path. With `--print-filename` in addition, the resulting file name will
2021-03-31 18:12:08 +00:00
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
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
2018-09-01 11:58:00 +00:00
```
rclone copyurl https://example.com dest:path [flags]
```
## Options
2018-09-01 11:58:00 +00:00
```
2021-03-31 18:12:08 +00:00
-a, --auto-filename Get the file name from the URL and use it for destination file path
-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
```
See the [global flags page](/flags/) for global options not listed here.
## 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