mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 18:04:55 +01:00
docs: Updated sync and dedupe command docs #4429
This commit is contained in:
parent
4013bc4a4c
commit
83368998be
@ -32,8 +32,8 @@ By default ` + "`dedupe`" + ` interactively finds files with duplicate
|
|||||||
names and offers to delete all but one or rename them to be
|
names and offers to delete all but one or rename them to be
|
||||||
different. This is known as deduping by name.
|
different. This is known as deduping by name.
|
||||||
|
|
||||||
Deduping by name is only useful with backends like Google Drive which
|
Deduping by name is only useful with a small group of backends (e.g. Google Drive,
|
||||||
can have duplicate file names. It can be run on wrapping backends
|
Opendrive) that can have duplicate file names. It can be run on wrapping backends
|
||||||
(e.g. crypt) if they wrap a backend which supports duplicate file
|
(e.g. crypt) if they wrap a backend which supports duplicate file
|
||||||
names.
|
names.
|
||||||
|
|
||||||
|
@ -27,7 +27,8 @@ var commandDefinition = &cobra.Command{
|
|||||||
Sync the source to the destination, changing the destination
|
Sync the source to the destination, changing the destination
|
||||||
only. Doesn't transfer unchanged files, testing by size and
|
only. Doesn't transfer unchanged files, testing by size and
|
||||||
modification time or MD5SUM. Destination is updated to match
|
modification time or MD5SUM. Destination is updated to match
|
||||||
source, including deleting files if necessary.
|
source, including deleting files if necessary (except duplicate
|
||||||
|
objects, see below).
|
||||||
|
|
||||||
**Important**: Since this can cause data loss, test first with the
|
**Important**: Since this can cause data loss, test first with the
|
||||||
` + "`--dry-run` or the `--interactive`/`-i`" + ` flag.
|
` + "`--dry-run` or the `--interactive`/`-i`" + ` flag.
|
||||||
@ -35,7 +36,8 @@ source, including deleting files if necessary.
|
|||||||
rclone sync -i SOURCE remote:DESTINATION
|
rclone sync -i SOURCE remote:DESTINATION
|
||||||
|
|
||||||
Note that files in the destination won't be deleted if there were any
|
Note that files in the destination won't be deleted if there were any
|
||||||
errors at any point.
|
errors at any point. Duplicate objects (files with the same name, on
|
||||||
|
those providers that support it) are also not yet handled.
|
||||||
|
|
||||||
It is always the contents of the directory that is synced, not the
|
It is always the contents of the directory that is synced, not the
|
||||||
directory so when source:path is a directory, it's the contents of
|
directory so when source:path is a directory, it's the contents of
|
||||||
@ -46,6 +48,9 @@ If dest:path doesn't exist, it is created and the source:path contents
|
|||||||
go there.
|
go there.
|
||||||
|
|
||||||
**Note**: Use the ` + "`-P`" + `/` + "`--progress`" + ` flag to view real-time transfer statistics
|
**Note**: Use the ` + "`-P`" + `/` + "`--progress`" + ` flag to view real-time transfer statistics
|
||||||
|
|
||||||
|
**Note**: Use the ` + "`rclone dedupe`" + ` command to deal with "Duplicate object/directory found in source/destination - ignoring" errors.
|
||||||
|
See [this forum post](https://forum.rclone.org/t/sync-not-clearing-duplicates/14372) for more info.
|
||||||
`,
|
`,
|
||||||
Run: func(command *cobra.Command, args []string) {
|
Run: func(command *cobra.Command, args []string) {
|
||||||
cmd.CheckArgs(2, 2, command, args)
|
cmd.CheckArgs(2, 2, command, args)
|
||||||
|
Loading…
Reference in New Issue
Block a user