What is the problem you are having with rclone?
depending on how a file is created in a rclone mount, the initial time of that file is wrong. It inherits the directory time instead of the actual creation time.
What is your rclone version (output from rclone version
)
1.52
Which OS you are using and how many bits (eg Windows 7, 64 bit)
linux 64 amd
Which cloud storage system are you using? (eg Google Drive)
gdrive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone mount robgs:camst /data/camst \
--allow-other \
--buffer-size 150M \
--default-permissions \
--dir-cache-time 485h \
--gid $gid --uid $uid \
--log-level DEBUG \
--umask $UMASK \
--use-mmap \
2>&1
A log from the command with the -vv
flag (eg output from rclone -vv copy /tmp remote:tmp
)
root#: cat testcase
mkdir /data/camst/test
sleep 30
cd /data/camst/test
rm -f test wrongtime
touch test
while (true); do find . -type f -exec stat --format %n:%w:%y {} \; ; sleep 0.1; done&
echo why > wrongtime
sleep 2
kill %1
When I run that against the mount You'll see the times change in the middle to the correct time where as initially it was the same time as the folder.
root# ./testcase
mkdir: cannot create directory '/data/camst/test': File exists
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:12:06.416000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:30:29.454000000 -0400 #HERE
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:30:29.454000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:30:29.454000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:30:29.454000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:30:29.454000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:30:29.454000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:30:29.454000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:30:29.454000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:30:29.454000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:30:29.454000000 -0400
./test:-:2020-06-05 12:30:27.327000000 -0400
./wrongtime:-:2020-06-05 12:30:29.454000000 -0400
I checked older versions and they all work like this back to 1.50. I should note that if a file is created with a different command like 'touch' the times are correct immediately. I assume this is something to do with streaming the file with echo into the mount.
This time difference messes with my scripts that look at times using find. I tried looking at the code but got lost