Fix sync option in manpage/docs

This commit is contained in:
Christian Schwede 2015-05-08 11:25:08 +02:00
parent ba2091725e
commit e35237fdfb
3 changed files with 13 additions and 15 deletions

View File

@ -80,11 +80,10 @@ MD5SUM. Doesn't delete files from the destination.
rclone sync source:path dest:path rclone sync source:path dest:path
Sync the source to the destination. Doesn't transfer Sync the source to the destination, changing the destination only. Doesn't
unchanged files, testing first by modification time then by transfer unchanged files, testing first by modification time then by size.
size. Deletes any files that exist in source that don't Destination is updated to match source, including deleting files if necessary.
exist in destination. Since this can cause data loss, test Since this can cause data loss, test first with the --dry-run flag.
first with the `--dry-run` flag.
rclone ls [remote:path] rclone ls [remote:path]

View File

@ -63,11 +63,10 @@ MD5SUM. Doesn't delete files from the destination.
rclone sync source:path dest:path rclone sync source:path dest:path
Sync the source to the destination. Doesn't transfer Sync the source to the destination, changing the destination only. Doesn't
unchanged files, testing first by modification time then by transfer unchanged files, testing first by modification time then by size.
size. Deletes any files that exist in source that don't Destination is updated to match source, including deleting files if necessary.
exist in destination. Since this can cause data loss, test Since this can cause data loss, test first with the --dry-run flag.
first with the `--dry-run` flag.
rclone ls [remote:path] rclone ls [remote:path]

View File

@ -77,11 +77,11 @@ var Commands = []Command{
Name: "sync", Name: "sync",
ArgsHelp: "source:path dest:path", ArgsHelp: "source:path dest:path",
Help: ` Help: `
Sync the source to the destination. Doesn't transfer Sync the source to the destination, changing the destination only.
unchanged files, testing first by modification time then by Doesn't transfer unchanged files, testing first by modification time
size. Deletes any files that exist in source that don't then by size. Destination is updated to match source, including
exist in destination. Since this can cause data loss, test deleting files if necessary. Since this can cause data loss, test first
first with the --dry-run flag.`, with the --dry-run flag.`,
Run: func(fdst, fsrc fs.Fs) { Run: func(fdst, fsrc fs.Fs) {
err := fs.Sync(fdst, fsrc, true) err := fs.Sync(fdst, fsrc, true)
if err != nil { if err != nil {