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
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]

View File

@ -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]

View File

@ -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 {