Sync mega size only not timestamp

What is the problem you are having with rclone?

When sync between local filesystem and remote mega only testing by size is used but not modification time as is expected from doc . Why? sync should check size and modification time when checksum is not avaiable as for mega. If I replace a byte in a file, the file is not syncronized.

What is your rclone version (output from rclone version)

rclone v1.56.0
- os/version: debian 11.0 (64 bit)
- os/kernel: 5.10.0-8-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.16.5
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

mega

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rsync sycn test mega:/test/ -vv -P

The rclone config contents with secrets removed.

[mega]
type = mega
user = XXXXXXXXXXXXXX
pass = XXXXXXXXXXXXXX
hard_delete = true

A log from the command with the -vv flag

touch test/test.txt
rsync sycn test mega:/test/ -vv -P
<7>DEBUG : rclone: Version "v1.56.0" starting with parameters ["rclone" "sync" "test" "mega:/test" "-vv" "-P"]
<7>DEBUG : rclone: systemd logging support activated
<7>DEBUG : Creating backend with remote "test"
<7>DEBUG : Using config file from "/home/test/.config/rclone/rclone.conf"
<7>DEBUG : fs cache: renaming cache item "test" to be canonical "/mnt/test"
<7>DEBUG : Creating backend with remote "mega:/test/"
<7>DEBUG : fs cache: renaming cache item "mega:/test/" to be canonical "mega:test"
2021-09-12 15:15:41 DEBUG : mega root 'test': Waiting for checks to finish
2021-09-12 15:15:41 DEBUG : test.txt: Sizes identical
2021-09-12 15:15:41 DEBUG : test.txt: Unchanged skipping
2021-09-12 15:15:41 DEBUG : mega root 'test': Waiting for transfers to finish
2021-09-12 15:15:41 DEBUG : Waiting for deletions to finish
2021-09-12 15:15:41 INFO  : There was nothing to transfer
Transferred:              0 / 0 Byte, -, 0 Byte/s, ETA -
Checks:                 1 / 1, 100%
Elapsed time:         1.7s
<6>INFO  : 
Transferred:   	          0 / 0 Byte, -, 0 Byte/s, ETA -
Checks:                 1 / 1, 100%
Elapsed time:         1.7s

<7>DEBUG : 9 go routines active

Thank you for help

Mega doesn't support timestamps:

https://rclone.org/mega/#modified-time-and-hashes

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.