mirror of
https://github.com/rclone/rclone.git
synced 2025-12-16 00:04:40 +00:00
onedrive: implement rclone cleanup #4106
This commit is contained in:
@@ -331,6 +331,8 @@ This counts against a users quota.
|
||||
For example changing the modification time of a file creates a second
|
||||
version, so the file is using twice the space.
|
||||
|
||||
You can use the `rclone cleanup` command (see below) to remove old versions.
|
||||
|
||||
The `copy` is the only rclone command affected by this as we copy
|
||||
the file and then afterwards set the modification time to match the
|
||||
source file.
|
||||
@@ -359,6 +361,18 @@ Note: This will disable the creation of new file versions, but will not remove a
|
||||
8. Use rclone to upload or modify files. (I also use the --no-update-modtime flag)
|
||||
9. Restore the versioning settings after using rclone. (Optional)
|
||||
|
||||
### Cleanup
|
||||
|
||||
OneDrive supports `rclone cleanup` which causes rclone to look through
|
||||
every file under the path supplied and delete all version but the
|
||||
current version. Because this involves traversing all the files, then
|
||||
querying each file for versions it can be quite slow. Rclone does
|
||||
`--checkers` tests in parallel. The command also supports `-i` which
|
||||
is a great way to see what it would do.
|
||||
|
||||
rclone cleanup -i remote:path/subdir # interactively remove all old version for path/subdir
|
||||
rclone cleanup remote:path/subdir # unconditionally remove all old version for path/subdir
|
||||
|
||||
### Troubleshooting ###
|
||||
|
||||
#### Unexpected file size/hash differences on Sharepoint ####
|
||||
|
||||
@@ -336,7 +336,7 @@ operations more efficient.
|
||||
| Mega | Yes | No | Yes | Yes | Yes | No | No | No [#2178](https://github.com/rclone/rclone/issues/2178) | Yes | Yes |
|
||||
| Memory | No | Yes | No | No | No | Yes | Yes | No | No | No |
|
||||
| Microsoft Azure Blob Storage | Yes | Yes | No | No | No | Yes | Yes | No [#2178](https://github.com/rclone/rclone/issues/2178) | No | No |
|
||||
| Microsoft OneDrive | Yes | Yes | Yes | Yes | No [#575](https://github.com/rclone/rclone/issues/575) | No | No | Yes | Yes | Yes |
|
||||
| Microsoft OneDrive | Yes | Yes | Yes | Yes | Yes | No | No | Yes | Yes | Yes |
|
||||
| OpenDrive | Yes | Yes | Yes | Yes | No | No | No | No | No | Yes |
|
||||
| OpenStack Swift | Yes † | Yes | No | No | No | Yes | Yes | No [#2178](https://github.com/rclone/rclone/issues/2178) | Yes | No |
|
||||
| pCloud | Yes | Yes | Yes | Yes | Yes | No | No | Yes | Yes | Yes |
|
||||
|
||||
Reference in New Issue
Block a user