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
|
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]
|
||||||
|
|
||||||
|
@ -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]
|
||||||
|
|
||||||
|
10
rclone.go
10
rclone.go
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user