mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 08:23:47 +01:00
Fix sync option in manpage/docs
This commit is contained in:
parent
ba2091725e
commit
e35237fdfb
@ -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]
|
||||
|
||||
|
@ -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]
|
||||
|
||||
|
10
rclone.go
10
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user