2016-08-03 20:36:28 +00:00
|
|
|
---
|
2019-08-26 14:25:20 +00:00
|
|
|
date: 2019-08-26T15:19:45+01:00
|
2016-08-03 20:36:28 +00:00
|
|
|
title: "rclone move"
|
|
|
|
slug: rclone_move
|
|
|
|
url: /commands/rclone_move/
|
|
|
|
---
|
|
|
|
## rclone move
|
|
|
|
|
|
|
|
Move files from source to dest.
|
|
|
|
|
|
|
|
### Synopsis
|
|
|
|
|
|
|
|
|
|
|
|
Moves the contents of the source directory to the destination
|
2017-01-02 15:30:34 +00:00
|
|
|
directory. Rclone will error if the source and destination overlap and
|
|
|
|
the remote does not support a server side directory move operation.
|
2016-08-03 20:36:28 +00:00
|
|
|
|
|
|
|
If no filters are in use and if possible this will server side move
|
|
|
|
`source:path` into `dest:path`. After this `source:path` will no
|
|
|
|
longer longer exist.
|
|
|
|
|
|
|
|
Otherwise for each file in `source:path` selected by the filters (if
|
|
|
|
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)
|
|
|
|
into `dest:path` then delete the original (if no errors on copy) in
|
|
|
|
`source:path`.
|
|
|
|
|
2017-12-23 13:07:45 +00:00
|
|
|
If you want to delete empty source directories after move, use the --delete-empty-src-dirs flag.
|
2017-11-27 11:42:02 +00:00
|
|
|
|
2019-02-09 10:42:57 +00: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-03 20:36:28 +00:00
|
|
|
**Important**: Since this can cause data loss, test first with the
|
|
|
|
--dry-run flag.
|
|
|
|
|
2018-11-24 13:44:25 +00:00
|
|
|
**Note**: Use the `-P`/`--progress` flag to view real-time transfer statistics.
|
|
|
|
|
2016-08-03 20:36:28 +00:00
|
|
|
|
|
|
|
```
|
2017-09-30 13:19:47 +00:00
|
|
|
rclone move source:path dest:path [flags]
|
|
|
|
```
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
|
|
|
```
|
2019-04-13 10:01:58 +00:00
|
|
|
--create-empty-src-dirs Create empty source dirs on destination after move
|
2017-12-23 13:07:45 +00:00
|
|
|
--delete-empty-src-dirs Delete empty source dirs after move
|
|
|
|
-h, --help help for move
|
2016-08-03 20:36:28 +00:00
|
|
|
```
|
|
|
|
|
2019-06-20 15:18:02 +00:00
|
|
|
See the [global flags page](/flags/) for global options not listed here.
|
|
|
|
|
2016-08-03 20:36:28 +00:00
|
|
|
### SEE ALSO
|
|
|
|
|
2018-10-15 10:03:08 +00:00
|
|
|
* [rclone](/commands/rclone/) - Show help for rclone commands, flags and backends.
|
2018-03-19 10:06:13 +00:00
|
|
|
|