github.com/xhghs/rclone@v1.51.1-0.20200430155106-e186a28cced8/docs/content/commands/rclone_moveto.md (about)

     1  ---
     2  date: 2020-02-01T10:26:53Z
     3  title: "rclone moveto"
     4  slug: rclone_moveto
     5  url: /commands/rclone_moveto/
     6  ---
     7  ## rclone moveto
     8  
     9  Move file or directory from source to dest.
    10  
    11  ### Synopsis
    12  
    13  
    14  If source:path is a file or directory then it moves it to a file or
    15  directory named dest:path.
    16  
    17  This can be used to rename files or upload single files to other than
    18  their existing name.  If the source is a directory then it acts exactly
    19  like the move command.
    20  
    21  So
    22  
    23      rclone moveto src dst
    24  
    25  where src and dst are rclone paths, either remote:path or
    26  /path/to/local or C:\windows\path\if\on\windows.
    27  
    28  This will:
    29  
    30      if src is file
    31          move it to dst, overwriting an existing file if it exists
    32      if src is directory
    33          move it to dst, overwriting existing files if they exist
    34          see move command for full details
    35  
    36  This doesn't transfer unchanged files, testing by size and
    37  modification time or MD5SUM.  src will be deleted on successful
    38  transfer.
    39  
    40  **Important**: Since this can cause data loss, test first with the
    41  --dry-run flag.
    42  
    43  **Note**: Use the `-P`/`--progress` flag to view real-time transfer statistics.
    44  
    45  
    46  ```
    47  rclone moveto source:path dest:path [flags]
    48  ```
    49  
    50  ### Options
    51  
    52  ```
    53    -h, --help   help for moveto
    54  ```
    55  
    56  See the [global flags page](/flags/) for global options not listed here.
    57  
    58  ### SEE ALSO
    59  
    60  * [rclone](/commands/rclone/)	 - Show help for rclone commands, flags and backends.
    61