Rclone flag --refresh-times ignored

What is the problem you are having with rclone?

Hi ,

i am using rclone(v1.70.3) to migrate filed from nextcloud to opencloud.

Both, nextcloud(source) and opencloud(destination) are configured in this way and run on the same machine in docker environment.

rclone successfully copy the files but does not update the modtime in the filesystem.

Also the rclone sync does not update .

'rclone version' .

rclone v1.70.3

  • os/version: debian 13.0 (64 bit)
  • os/kernel: 6.5.13-6-pve (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.24.4
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using?

Cloud storage is nextcloud as source and opencloud as destination.
I am usung webdavs to access them.

These are the command i run to copy, sync and verify.

rclone copy nc-peter:/ opencloud-peter:/ --refresh-times

rclone lsl nc-peter:/MigrationTest
       26 2025-08-22 10:07:23.000000000 TestMigrationFile.md

rclone lsl opencloud-peter:/MigrationTest
       26 2025-08-22 10:08:54.000000000 TestMigrationFile.md

As you can see the timestamp is not updated in the initial rclone copy. The destination timestamp represents the timestamp when the original rclone copy command executed.

'rclone config redacted'

[nc-peter]
type = webdav
url = https://nc.example.com/remote.php/webdav
vendor = nc-peter
owncloud_exclude_shares = true
user = XXX
pass = XXX
description = nc-peter
[opencloud-peter]
type = webdav
url = https://oc.example.com/remote.php/webdav
vendor = opencloud
owncloud_exclude_shares = true
user = XXX
pass = XXX
description = opencloud-peter

Double check the config for sensitive info before posting publicly

A log from the command rclone sync with vv flag

rclone sync nc-peter:/MigrationTest opencloud-peter:/MigrationTest --refresh-times -vvv
2025/08/22 10:36:37 DEBUG : rclone: Version "v1.70.3" starting with parameters ["./rclone" "sync" "nc-peter:/MigrationTest" "opencloud-peter:/MigrationTest" "--refresh-times" "-vvv"]
2025/08/22 10:36:37 DEBUG : Creating backend with remote "nc-peter:/MigrationTest"
2025/08/22 10:36:37 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2025/08/22 10:36:37 DEBUG : found headers:
2025/08/22 10:36:37 DEBUG : webdav root 'MigrationTest': Unknown vendor "nc-peter"
2025/08/22 10:36:37 DEBUG : fs cache: renaming cache item "nc-peter:/MigrationTest" to be canonical "nc-peter:MigrationTest"
2025/08/22 10:36:37 DEBUG : Creating backend with remote "opencloud-peter:/MigrationTest"
2025/08/22 10:36:37 DEBUG : found headers:
2025/08/22 10:36:37 DEBUG : webdav root 'MigrationTest': Unknown vendor "opencloud"
2025/08/22 10:36:37 DEBUG : fs cache: renaming cache item "opencloud-peter:/MigrationTest" to be canonical "opencloud-peter:MigrationTest"
2025/08/22 10:36:37 DEBUG : webdav root 'MigrationTest': Waiting for checks to finish
2025/08/22 10:36:37 DEBUG : TestMigrationFile.md: Sizes identical
2025/08/22 10:36:37 DEBUG : TestMigrationFile.md: Unchanged skipping
2025/08/22 10:36:37 DEBUG : webdav root 'MigrationTest': Waiting for transfers to finish
2025/08/22 10:36:37 DEBUG : Waiting for deletions to finish
2025/08/22 10:36:37 INFO : There was nothing to transfer
2025/08/22 10:36:37 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 1 / 1, 100%, Listed 2
Elapsed time: 0.2s
2025/08/22 10:36:37 DEBUG : 7 go routines active

the rclone is a great tool and works very good for the scenario.

Any help to get the timestamp issue fiex would be welcomed. Thanks

Many WebDAV providers do not support mtime. Are you sure yours do?

thanks for the support .

indeed i needed to update the config file to reflect the right vendor and url.

First i updated the config.

[nc-peter]
type = webdav
url = https://nc.example.com/remote.php/dav/files/peter
vendor = nextcloud
owncloud_exclude_shares = true
user = XXX
pass = XXX
description = nc-peter

[opencloud-peter]
type = webdav
url = https://oc.example.com/remote.php/webdav
vendor = infinitescale
owncloud_exclude_shares = true
user = XXX
pass = XXX
description = opencloud-peter
### Double check the config for sensitive info before posting publicly

with this updated config i restarted rclone sync

rclone sync nc-peter:/MigrationTest opencloud-peter:/MigrationTest --refresh-times -vvv
2025/08/22 11:35:51 DEBUG : rclone: Version "v1.70.3" starting with parameters ["./rclone" "sync" "nc-peter:/MigrationTest" "opencloud-peter:/MigrationTest" "--refresh-times" "-vvv"]
2025/08/22 11:35:51 DEBUG : Creating backend with remote "nc-peter:/MigrationTest"
2025/08/22 11:35:51 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2025/08/22 11:35:51 DEBUG : found headers: 
2025/08/22 11:35:51 DEBUG : Chunks temporary upload directory: https://nc.kreutzeronline.cc/remote.php/dav/uploads/peter/
2025/08/22 11:35:51 DEBUG : fs cache: renaming cache item "nc-peter:/MigrationTest" to be canonical "nc-peter:MigrationTest"
2025/08/22 11:35:51 DEBUG : Creating backend with remote "opencloud-peter:/MigrationTest"
2025/08/22 11:35:51 DEBUG : found headers: 
2025/08/22 11:35:51 DEBUG : fs cache: renaming cache item "opencloud-peter:/MigrationTest" to be canonical "opencloud-peter:MigrationTest"
2025/08/22 11:35:52 DEBUG : webdav root 'MigrationTest': Waiting for checks to finish
2025/08/22 11:35:52 DEBUG : TestMigrationFile.md: Modification times differ by 1m31s: 2025-08-22 08:07:23 +0000 GMT, 2025-08-22 08:08:54 +0000 GMT
2025/08/22 11:35:52 DEBUG : TestMigrationFile.md: Src hash empty - aborting Dst hash check
2025/08/22 11:35:52 INFO  : TestMigrationFile.md: Updated modification time in destination
2025/08/22 11:35:52 DEBUG : TestMigrationFile.md: Unchanged skipping
2025/08/22 11:35:52 DEBUG : webdav root 'MigrationTest': Waiting for transfers to finish
2025/08/22 11:35:52 DEBUG : Waiting for deletions to finish
2025/08/22 11:35:52 INFO  : There was nothing to transfer
2025/08/22 11:35:52 INFO  : 
Transferred:              0 B / 0 B, -, 0 B/s, ETA -
Checks:                 1 / 1, 100%, Listed 2
Elapsed time:         0.3s

the modtime difference seems to be detected. But the time is still not updated.

rclone lsl nc-peter:/MigrationTest       
26 2025-08-22 10:07:23.000000000 TestMigrationFile.md
rclone lsl opencloud-peter:/MigrationTest       
26 2025-08-22 10:08:54.000000000 TestMigrationFile.md

Does this mean that the infinitescale webdav destination does not support modtime updates?

Most likely yes. Try other way around to see if when nextcloud is the destination it works.

thanks , i will open an issue/request in the opencloud git project to get clarification on how to use rclone for migration from opencloud(infinitescale) to nextcloud.

welcome to the forum,

afiak, those are not a valid vendors.


for testing modtime support, i use rclone touch

according to link shared by kapitainsky the vendors should be fine.

the opencloud is the new fork from owncloud based on go and is named infinitescale. Please correct me if i am wrong with this.

the link share also point out that the only Fastmail Files, ownCloud or Nextcloud support modification of timestamp in file

i verified now also with the rclone touch and it confirmes that timestamp does not update. the timestamp remain unchanged

rclone touch opencloud-peter:/MigrationTest/TestMigrationFile.md --timestamp '2025-08-22T10:07:23.00' --localtime -vv
2025/08/22 14:38:08 DEBUG : rclone: Version "v1.70.3" starting with parameters ["./rclone" "touch" "opencloud-peter:/MigrationTest/TestMigrationFile.md" "--timestamp" "2025-08-22T10:07:23.00" "--localtime" "-vv"]
2025/08/22 14:38:08 DEBUG : Creating backend with remote "opencloud-peter:/MigrationTest/"
2025/08/22 14:38:08 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2025/08/22 14:38:08 DEBUG : found headers: 
2025/08/22 14:38:08 DEBUG : fs cache: renaming cache item "opencloud-peter:/MigrationTest/" to be canonical "opencloud-peter:MigrationTest"
2025/08/22 14:38:08 DEBUG : Touch time 2025-08-22 10:07:23 +0200 CEST
2025/08/22 14:38:08 DEBUG : webdav root 'MigrationTest': Touching "TestMigrationFile.md"
2025/08/22 14:38:09 DEBUG : 5 go routines active
root@opencloud:~/rclone-v1.70.3-linux-amd64# ./rclone lsl opencloud-peter:/MigrationTest       26 2025-08-22 10:08:54.000000000 TestMigrationFile.md

yes, that is correct. i missed the fact that rclone added infinitescale, it is not mentioned in the changelog.

update: it is mentioned in the changelog, as Infinite Scale, not infinitescale