From e35237fdfbbb2eeb49232060a7ff2eb87379dd4f Mon Sep 17 00:00:00 2001 From: Christian Schwede Date: Fri, 8 May 2015 11:25:08 +0200 Subject: [PATCH] Fix sync option in manpage/docs --- README.md | 9 ++++----- docs/content/docs.md | 9 ++++----- rclone.go | 10 +++++----- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 9880d4f9e..0935a9825 100644 --- a/README.md +++ b/README.md @@ -80,11 +80,10 @@ MD5SUM. Doesn't delete files from the destination. rclone sync source:path dest:path -Sync the source to the destination. Doesn't transfer -unchanged files, testing first by modification time then by -size. Deletes any files that exist in source that don't -exist in destination. Since this can cause data loss, test -first with the `--dry-run` flag. +Sync the source to the destination, changing the destination only. Doesn't +transfer unchanged files, testing first by modification time then by size. +Destination is updated to match source, including deleting files if necessary. +Since this can cause data loss, test first with the --dry-run flag. rclone ls [remote:path] diff --git a/docs/content/docs.md b/docs/content/docs.md index 95da136bd..91f62c1e3 100644 --- a/docs/content/docs.md +++ b/docs/content/docs.md @@ -63,11 +63,10 @@ MD5SUM. Doesn't delete files from the destination. rclone sync source:path dest:path -Sync the source to the destination. Doesn't transfer -unchanged files, testing first by modification time then by -size. Deletes any files that exist in source that don't -exist in destination. Since this can cause data loss, test -first with the `--dry-run` flag. +Sync the source to the destination, changing the destination only. Doesn't +transfer unchanged files, testing first by modification time then by size. +Destination is updated to match source, including deleting files if necessary. +Since this can cause data loss, test first with the --dry-run flag. rclone ls [remote:path] diff --git a/rclone.go b/rclone.go index 77c66b213..d178987d7 100644 --- a/rclone.go +++ b/rclone.go @@ -77,11 +77,11 @@ var Commands = []Command{ Name: "sync", ArgsHelp: "source:path dest:path", Help: ` - Sync the source to the destination. Doesn't transfer - unchanged files, testing first by modification time then by - size. Deletes any files that exist in source that don't - exist in destination. Since this can cause data loss, test - first with the --dry-run flag.`, + Sync the source to the destination, changing the destination only. + Doesn't transfer unchanged files, testing first by modification time + then by size. Destination is updated to match source, including + deleting files if necessary. Since this can cause data loss, test first + with the --dry-run flag.`, Run: func(fdst, fsrc fs.Fs) { err := fs.Sync(fdst, fsrc, true) if err != nil {