Sync from gdrive to samba share mod time

What is the problem you are having with rclone?

Modification times always differs after first sync.

Run the command 'rclone version' and share the full output of the command.

rclone v1.64.2

  • os/version: photon 3.0 (64 bit)
  • os/kernel: 4.19.290-1.ph3-esx (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.3
  • go/linking: static
  • go/tags: none

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

Google Drive and Samba

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

rclone sync 'media01:tv/' 'goflex:/storage/videos/tv/' --transfers=1 --progress -vvv --multi-thread-streams 0

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[gdrive01]
type = drive
client_id = XXX
client_secret = XXX
token = XXX
team_drive = XXX
root_folder_id =

[goflex]
type = smb
host = XXX
user = XXX

[media01]
type = crypt
remote = gdrive01:datastore01
filename_encryption = standard
directory_name_encryption = true
password = XXX
password2 = XXX

A log from the command that you were trying to run with the -vv flag

2023/11/04 20:42:28 DEBUG : rclone: Version "v1.64.2" starting with parameters ["rclone" "sync" "media01:tv" "goflex:/storage/videos/tv" "--transfers=1" "--progress" "-vv" "--multi-thread-streams" "0"]
2023/11/04 20:42:28 DEBUG : Creating backend with remote "media01:tv"
2023/11/04 20:42:28 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/11/04 20:42:28 DEBUG : Creating backend with remote "gdrive01:datastore01/0phq053h0e1q3lqe2eujahrhhk/2pofr0nji1i491r3q5v4o07c44"
2023/11/04 20:42:29 DEBUG : Creating backend with remote "goflex:/storage/videos/tv"
2023/11/04 20:42:29 DEBUG : smb://guest@192.168.1.130:445/storage/videos/tv: Using root directory "storage/videos/tv"
2023/11/04 20:42:29 DEBUG : fs cache: renaming cache item "goflex:/storage/videos/tv" to be canonical "goflex:storage/videos/tv"
2023/11/04 20:42:30 DEBUG : folder/file.ext: Sizes differ (src 4697267235 vs dst 89124864)
2023/11/04 20:42:30 DEBUG : folder/file.ext: Modification times differ by 42153h6m30.0974781s: 2019-01-13 09:18:5$.574 +0000 UTC, 2023-11-04 18:25:21.6714781 +0000 UTC
2023/11/04 20:42:30 DEBUG : folder/file.ext: Modification times differ by 42153h8m31.1885354s: 2019-01-13 09:19:3$.554 +0000 UTC, 2023-11-04 18:28:08.7425354 +0000 UTC
2023/11/04 20:42:30 DEBUG : folder/file.ext: Modification times differ by 42153h13m51.7369314s: 2019-01-13 09:17:$9.748 +0000 UTC, 2023-11-04 18:31:01.4849314 +0000 UTC

as per rclone docs, modtime and hash is not supported.
that is why i do not use the rclone smb remote.
i mount it using os.

might try --refresh-times

tho, if i remember correctly, in another topic in the forum, i showed the touch seemed to work.

rclone lsl d:\files\file.ext
        0 2023-08-31 09:21:16.825412800 file.ext

rclone copy d:\files\file.ext sbox_smb:backup/zork -v
INFO  : file.ext: Copied (new)

rclone lsl smb:backup/zork/file.ext
        0 2023-08-31 09:21:16.825412800 file.ext

rclone touch smb:backup/zork/file.ext

rclone lsl smb:backup/zork/file.ext
        0 2023-11-04 17:01:09.935658000 file.ext

I wanted to simplify things using the smb via rclone.
--refresh-times does the trick but it's not very consistent with my setup so i've switched to mount it via os.

Thank you.

yeah, i once thought that too.....

welcome

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