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