What is the problem you are having with rclone?
Issuw with modification times. Unsure where the issue lies but it propagates along the workflow.
Rclone drive is "mounted" on MacOS with Macfuse (MacOS 12.5, Macfuse 4.4).
rclone mount DB1-ENC: ~/DB1-ENC --volname "DB1-ENC" --drive-acknowledge-abuse --vfs-cache-mode full --vfs-cache-max-size 15G --verbose --tpslimit=10 --use-server-modtime
Problem is I can download a file (locally), say it has modification date 1 August. I can rename the file (either through finder or through a tool like Filebot) and it still has the original modification date rather than today's (e.g. 14 Aug).
This is creating problems when on the server trying to search by modification time.
I have also tried using --use-server-modtime as I got the impression that would "rewrite" the modification time as stored on disk. No difference.
rclone touch does not help as the files are on Dropbox and it seems that is no supported.
Run the command 'rclone version' and share the full output of the command.
Which cloud storage system are you using? (eg Google Drive)
Dropbox (with crypt)
The command you were trying to run (eg
rclone copy /tmp remote:tmp)
rclone mount DB1-ENC: ~/DB1-ENC --volname "DB1-ENC" --drive-acknowledge-abuse --vfs-cache-mode full --vfs-cache-max-size 15G --verbose --tpslimit=10 --use-server-modtime```
#### The rclone config contents with secrets removed.
<!-- You should use 3 backticks to begin and end your paste to make it readable. -->
Paste config here
rclone mounts and otherwise works (whether as mount, or as copy, so backend ok)
#### A log from the command with the `-vv` flag
<!-- You should use 3 backticks to begin and end your paste to make it readable. Or use a service such as https://pastebin.com or https://gist.github.com/ -->
Can't easily log the mount as other data flows inbetween, no errors are returning in the window.```
If I view the uploaded file (on the distant server, rather than my Mac):
stat 'Catalyst - 23x05 - The Science Of Relationships.mkv'
File: Catalyst - 23x05 - The Science Of Relationships.mkv
Size: 987925542 Blocks: 1929543 IO Block: 4096 regular file
Device: c2h/194d Inode: 12112973972889381609 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/bastuman) Gid: ( 1000/bastuman)
Access: 2022-08-10 10:59:10.000000000 +0000
Modify: 2022-08-10 10:59:10.000000000 +0000
Change: 2022-08-10 10:59:10.000000000 +0000
So if my Mac has rclone mounted with use server modtime, surely this server entry should show a modtime of today (as the file has been renamed since downloading) when it was uploaded?
rclone lsl 'Catalyst - 23x05 - The Science Of Relationships.mkv'
987925542 2022-08-10 10:59:10.000000000 Catalyst - 23x05 - The Science Of Relationships.mkv
I'm trying to follow what you want to happen.
If you rename a file, that wouldn't change the modification time:
felix@gemini:~$ cp /etc/hosts .
felix@gemini:~$ ls -al hosts
-rw-r--r-- 1 felix felix 327 Aug 14 10:22 hosts
Sun Aug 14 10:23:01 AM EDT 2022
felix@gemini:~$ mv hosts blah
felix@gemini:~$ ls -al blah
-rw-r--r-- 1 felix felix 327 Aug 14 10:22 blah
You have to modify the file to change the time.
--use-server-modtime is for S3 based remotes and won't come into play with Dropbox.
That's for Google Drive and does nothing with Dropbox.
What's your goal? To replace the real mod time of a file with the upload time of the file?
Thanks. Some of the commands are legacy from when GD was used. Need to clean...
Objective is to have files on Dropbox/crypt reflecting a modification time so a search with -mtime can be used (find in Linux).
No problem with the files being uploaded overwriting their existing modtime, since if you change the filename say from dog1 to dog2.txt, it does not change mtime.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.