2016-08-04 04:36:28 +08:00
|
|
|
---
|
|
|
|
title: "rclone move"
|
2020-05-16 22:11:55 +08:00
|
|
|
description: "Move files from source to dest."
|
2016-08-04 04:36:28 +08:00
|
|
|
slug: rclone_move
|
|
|
|
url: /commands/rclone_move/
|
2022-12-21 01:16:14 +08:00
|
|
|
versionIntroduced: v1.19
|
2020-02-10 20:31:45 +08:00
|
|
|
# autogenerated - DO NOT EDIT, instead edit the source code in cmd/move/ and as part of making a release run "make commanddocs"
|
2016-08-04 04:36:28 +08:00
|
|
|
---
|
2020-05-22 18:17:37 +08:00
|
|
|
# rclone move
|
2016-08-04 04:36:28 +08:00
|
|
|
|
|
|
|
Move files from source to dest.
|
|
|
|
|
2020-05-22 18:17:37 +08:00
|
|
|
## Synopsis
|
2016-08-04 04:36:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
Moves the contents of the source directory to the destination
|
2017-01-02 23:30:34 +08:00
|
|
|
directory. Rclone will error if the source and destination overlap and
|
2021-02-02 21:42:35 +08:00
|
|
|
the remote does not support a server-side directory move operation.
|
2016-08-04 04:36:28 +08:00
|
|
|
|
2022-07-10 01:08:20 +08:00
|
|
|
To move single files, use the [moveto](/commands/rclone_moveto/)
|
|
|
|
command instead.
|
|
|
|
|
2021-02-02 21:42:35 +08:00
|
|
|
If no filters are in use and if possible this will server-side move
|
2016-08-04 04:36:28 +08:00
|
|
|
`source:path` into `dest:path`. After this `source:path` will no
|
2020-05-22 18:17:37 +08:00
|
|
|
longer exist.
|
2016-08-04 04:36:28 +08:00
|
|
|
|
|
|
|
Otherwise for each file in `source:path` selected by the filters (if
|
2021-02-02 21:42:35 +08:00
|
|
|
any) this will move it into `dest:path`. If possible a server-side
|
|
|
|
move will be used, otherwise it will copy it (server-side if possible)
|
2016-08-04 04:36:28 +08:00
|
|
|
into `dest:path` then delete the original (if no errors on copy) in
|
|
|
|
`source:path`.
|
|
|
|
|
2022-07-10 01:08:20 +08:00
|
|
|
If you want to delete empty source directories after move, use the
|
|
|
|
`--delete-empty-src-dirs` flag.
|
2017-11-27 19:42:02 +08:00
|
|
|
|
2019-02-09 18:42:57 +08:00
|
|
|
See the [--no-traverse](/docs/#no-traverse) option for controlling
|
|
|
|
whether rclone lists the destination directory or not. Supplying this
|
|
|
|
option when moving a small number of files into a large destination
|
|
|
|
can speed transfers up greatly.
|
|
|
|
|
2016-08-04 04:36:28 +08:00
|
|
|
**Important**: Since this can cause data loss, test first with the
|
2020-09-02 23:59:04 +08:00
|
|
|
`--dry-run` or the `--interactive`/`-i` flag.
|
2016-08-04 04:36:28 +08:00
|
|
|
|
2018-11-24 21:44:25 +08:00
|
|
|
**Note**: Use the `-P`/`--progress` flag to view real-time transfer statistics.
|
|
|
|
|
2016-08-04 04:36:28 +08:00
|
|
|
|
|
|
|
```
|
2017-09-30 21:19:47 +08:00
|
|
|
rclone move source:path dest:path [flags]
|
|
|
|
```
|
|
|
|
|
2020-05-22 18:17:37 +08:00
|
|
|
## Options
|
2017-09-30 21:19:47 +08:00
|
|
|
|
|
|
|
```
|
2019-04-13 18:01:58 +08:00
|
|
|
--create-empty-src-dirs Create empty source dirs on destination after move
|
2017-12-23 21:07:45 +08:00
|
|
|
--delete-empty-src-dirs Delete empty source dirs after move
|
|
|
|
-h, --help help for move
|
2016-08-04 04:36:28 +08:00
|
|
|
```
|
|
|
|
|
2019-06-20 23:18:02 +08:00
|
|
|
See the [global flags page](/flags/) for global options not listed here.
|
|
|
|
|
2020-05-22 18:17:37 +08:00
|
|
|
## SEE ALSO
|
2016-08-04 04:36:28 +08:00
|
|
|
|
2018-10-15 18:03:08 +08:00
|
|
|
* [rclone](/commands/rclone/) - Show help for rclone commands, flags and backends.
|
2018-03-19 18:06:13 +08:00
|
|
|
|