github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/docs/content/commands/rclone_sync.md (about)

     1  ---
     2  title: "rclone sync"
     3  description: "Make source and dest identical, modifying destination only."
     4  slug: rclone_sync
     5  url: /commands/rclone_sync/
     6  # autogenerated - DO NOT EDIT, instead edit the source code in cmd/sync/ and as part of making a release run "make commanddocs"
     7  ---
     8  # rclone sync
     9  
    10  Make source and dest identical, modifying destination only.
    11  
    12  ## Synopsis
    13  
    14  
    15  Sync the source to the destination, changing the destination
    16  only.  Doesn't transfer unchanged files, testing by size and
    17  modification time or MD5SUM.  Destination is updated to match
    18  source, including deleting files if necessary.
    19  
    20  **Important**: Since this can cause data loss, test first with the
    21  `--dry-run` flag to see exactly what would be copied and deleted.
    22  
    23  Note that files in the destination won't be deleted if there were any
    24  errors at any point.
    25  
    26  It is always the contents of the directory that is synced, not the
    27  directory so when source:path is a directory, it's the contents of
    28  source:path that are copied, not the directory name and contents.  See
    29  extended explanation in the `copy` command above if unsure.
    30  
    31  If dest:path doesn't exist, it is created and the source:path contents
    32  go there.
    33  
    34  **Note**: Use the `-P`/`--progress` flag to view real-time transfer statistics
    35  
    36  
    37  ```
    38  rclone sync source:path dest:path [flags]
    39  ```
    40  
    41  ## Options
    42  
    43  ```
    44        --create-empty-src-dirs   Create empty source dirs on destination after sync
    45    -h, --help                    help for sync
    46  ```
    47  
    48  See the [global flags page](/flags/) for global options not listed here.
    49  
    50  ## SEE ALSO
    51  
    52  * [rclone](/commands/rclone/)	 - Show help for rclone commands, flags and backends.
    53