I am looking for a way to download files that are <24 hours in age from gdrive and delete files that are 48> hours in age locally and in gdrive.
I was making use of
--max-age until I noticed it is not working as "intended".
From my understanding rclone will retain the original file creation date and upload files to google drive, setting the last modified date to the creation date, making min/max-age "inaccurate".
For example, you download a file that has a creation date of
2019-04-12, upload that file to google drive today and rclone will apply a last modified date of
2019-04-12 instead of the actual last modified date
lsl of file
1887669377 2019-04-12 03:09:06.000000000 file.zip
I have tried making use of
--drive-use-created-date but cannot find a way to complete my task.
I do have a suggestion for a
--touch flag, for example
rclone copy local:file.zip remote: -v --touch
This would give the newly uploaded file a new creation and modified date (did rclone used to do this on a very very early version?).
Any help is much appreciated!