How to use uploaded date when moving to GDrive

What is the problem you are having with rclone?

When moving files to GDrive, date shown on GDrive is the OS date but I'd like it to be the date of the upload. Is that possible?

What is your rclone version (output from rclone version)

rclone 1.49.1

  • os/arch: linux/amd64
  • go version: go1.12.8

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu 18.04 64

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 move <local_path> <remote_name>:<remote_path> --delete-empty-src-dirs --transfers=16 --checkers=32 --drive-chunk-size 64M --fast-list -P

The rclone config contents with secrets removed.

[remote_name]
type = drive
client_id = XXXXXXXXXXX
client_secret = XXXXXXXXXXX
scope = drive
root_folder_id = XXXXXXXXXXX
service_account_folder = /home/path/to/sa
token = XXXXXXXXXXX
team_drive = XXXXXXXXXXX

I think you can show the created date on Gdrive... You can certainly show it with rclone with

  --drive-use-created-date      Use file created date instead of modified date.,

so

rclone move <local_path> <remote_name>:<remote_path> --delete-empty-src-dirs --drive-use-created-date --transfers=16 --checkers=32 --drive-chunk-size 64M --fast-list -P

should do it?

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