# Maintain Both Created and Modified Dates

**URL:** <https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348>\
**Category:** Help and Support\
**Created:** [June 3, 2019, 8:05am UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348 "2019-06-03T08:05:24Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Pout](https://forum.rclone.org/user_avatar/forum.rclone.org/mark_pout/32/3044_2.png) [@Mark\_Pout](https://forum.rclone.org/u/Mark_Pout)\
**Post date:** [June 3, 2019, 8:05am UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348/1 "2019-06-03T08:05:24Z")

</div>

Hi All

Rclone Noob here, amazing tool and enjoying using it however I have noticed something, when using rclone or rsync to a Google Team Drive, I'm loosing the Created date. (see attached) I've looked through the documentation and I can't find anything from the existing commands that seems to do exactly what I'm looking to do, I don't even know if it's possible but has anyone else experienced this or got a work around?

 ![47](https://forum.rclone.org/uploads/default/original/2X/5/5b5313bac885b6d0a06e8b29a78032dbea3adf03.png)

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [June 3, 2019, 10:10am UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348/2 "2019-06-03T10:10:27Z")

</div>

You can't set the creation date with Google Drive only the modified date.

---

<div class="post-metadata">

**Author:** ![Mark\_Pout](https://forum.rclone.org/user_avatar/forum.rclone.org/mark_pout/32/3044_2.png) [@Mark\_Pout](https://forum.rclone.org/u/Mark_Pout)\
**Post date:** [June 4, 2019, 8:39am UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348/3 "2019-06-04T08:39:25Z")

</div>

I know what you mean, in the app you cant but say you use the Google drive File stream App to see those files locally mounted on your machine, you can see those dates then. this is the complaint my end users are having some times they organise files by creation date. I wouldn't say its a deal breaker but its definitely upset a few people in the past soI want to try and avoid it this time if there is a way ☹

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [June 4, 2019, 11:18am UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348/4 "2019-06-04T11:18:16Z")

</div>

I'm not sure what you are trying to say as i didn't say to use the Google Drive File Stream app.

---

<div class="post-metadata">

**Author:** ![Mark\_Pout](https://forum.rclone.org/user_avatar/forum.rclone.org/mark_pout/32/3044_2.png) [@Mark\_Pout](https://forum.rclone.org/u/Mark_Pout)\
**Post date:** [June 4, 2019, 12:42pm UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348/5 "2019-06-04T12:42:48Z")

</div>

Sorry, I should have been clearer.

A lot of my end users use Google Drive File Stream to access these team drives rather than the web interface. that's why having the correct creation and modified dates is important. They sometimes use these for filtering and arranging results. But just seen on the web interface for Google Drive that there is definitely a created and modified date within the Details section of each file. (Screen shot) You can see the Modified date is correct. The created date, however, has been replaced with the date I did the transfer. So if modified date can be brought over as part of the rclone process surely created date can to? So thats my question really. Hopefully that makes more sense. .

 ![05](https://forum.rclone.org/uploads/default/original/2X/8/852cfd640a2bc52980efcac7104dd80e7be58ac5.png)

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [June 4, 2019, 1:06pm UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348/6 "2019-06-04T13:06:35Z")

</div>

You can always open a feature request to request said functionality.

> **[ncw/rclone](https://github.com/ncw/rclone/issues)**
>
> "rsync for cloud storage" - Google Drive, Amazon Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Cloudfiles, Google Cloud Storage, Yandex Files - ncw/rclone

I wasn't saying it can or cannot be done, I was saying currently, it doesn't exist.

---

<div class="post-metadata">

**Author:** ![calisro](https://forum.rclone.org/user_avatar/forum.rclone.org/calisro/32/3130_2.png) [@calisro](https://forum.rclone.org/u/calisro)\
**Post date:** [June 4, 2019, 1:21pm UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348/7 "2019-06-04T13:21:32Z")

</div>

> [@Mark\_Pout](#):
>
> The created date, however, has been replaced with the date I did the transfer. So if modified date can be brought over as part of the rclone process surely created date can to? So thats my question really.

My understanding is that the creation date _cannot_ be changed. The creation date is just that... The date for which the object was created.

> [@Workaround for preserving dates](https://forum.rclone.org/t/workaround-for-preserving-dates/3734/5):
>
> Hello, If we transfer data using Google Drive file steam the dates of files and folders are preserved but not with Rclone. I wonder if they have opened up something new in the API since and maybe third party products like Rclone could take advantage? Thanks

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [June 4, 2019, 1:23pm UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348/8 "2019-06-04T13:23:49Z")

</div>

How do you expose the created date though via rclone ? I did not think you could.

---

<div class="post-metadata">

**Author:** ![calisro](https://forum.rclone.org/user_avatar/forum.rclone.org/calisro/32/3130_2.png) [@calisro](https://forum.rclone.org/u/calisro)\
**Post date:** [June 4, 2019, 1:29pm UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348/9 "2019-06-04T13:29:24Z")

</div>

For Example...

root@:/data/log# rclone lsl robgd:PersonalDoc/ca.rsa.2048.crt --drive-use-created-date  
2025 2017-04-17 08:20:03.422000000 ca.rsa.2048.crt

root@:/data/log# rclone lsl robgd:PersonalDoc/ca.rsa.2048.crt  
2025 2017-02-06 03:09:39.000000000 ca.rsa.2048.crt

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [June 4, 2019, 2:05pm UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348/10 "2019-06-04T14:05:31Z")

</div>

I think he’s looking to see both at the same time so he can choose to sort / filter on either.

---

<div class="post-metadata">

**Author:** ![calisro](https://forum.rclone.org/user_avatar/forum.rclone.org/calisro/32/3130_2.png) [@calisro](https://forum.rclone.org/u/calisro)\
**Post date:** [June 4, 2019, 2:07pm UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348/11 "2019-06-04T14:07:24Z")

</div>

@Mark_Pout are you looking to "set them"? Or view them? I understood you wanted to "set" the creation dates.

---

<div class="post-metadata">

**Author:** ![Mark\_Pout](https://forum.rclone.org/user_avatar/forum.rclone.org/mark_pout/32/3044_2.png) [@Mark\_Pout](https://forum.rclone.org/u/Mark_Pout)\
**Post date:** [June 7, 2019, 11:02am UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348/12 "2019-06-07T11:02:15Z")

</div>

Hi all

So just to be clear, as part of the RCLONE process I'm looking to maintain the original created date and modified date from the source location to the Google Shared drive. Im not looking to set those dates I just want them to be maintained as they come over as part of the process. My end users use both dates to sometimes sort their results when accessing the shared drive.

Also sorry for the Radio silence over the last few days (Crazy week). Anyway I never get answers so it's nice to find a supportive and engaged community! thanks all so far!

---

<div class="post-metadata">

**Author:** ![calisro](https://forum.rclone.org/user_avatar/forum.rclone.org/calisro/32/3130_2.png) [@calisro](https://forum.rclone.org/u/calisro)\
**Post date:** [June 7, 2019, 11:04am UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348/13 "2019-06-07T11:04:18Z")

</div>

Gdrive doesn't support syncing creation dates.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [June 8, 2019, 11:08am UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348/14 "2019-06-08T11:08:43Z")

</div>

> [@Mark\_Pout](#):
>
> So just to be clear, as part of the RCLONE process I'm looking to maintain the original created date and modified date from the source location to the Google Shared drive. Im not looking to set those dates I just want them to be maintained as they come over as part of the process. My end users use both dates to sometimes sort their results when accessing the shared drive.

rclone will only sync the modified date.

> [@calisro](#):
>
> Gdrive doesn't support syncing creation dates.

Suprisingly according to the dev docs you can set `createdTime`

> **[REST Resource: files  |  Google Drive  |  Google for...](https://developers.google.com/drive/api/reference/rest/v3/files?hl=hi)**

> `createdTime` `datetime` The time at which the file was created (RFC 3339 date-time). writable

However on unix at least there isn't a created time for files so unix systems use the modified time. There are only two times you can set on unix systems the Modification time (which rclone syncs) and the Access time which is the time the file was last read (which rclone doesn't sync).

So modification time is the least common denominator and that is why rclone syncs it.

Of all the platforms rclone supports only Windows appears to have a 3rd modifiable time the creation time.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [September 6, 2019, 11:08am UTC](https://forum.rclone.org/t/maintain-both-created-and-modified-dates/10348/15 "2019-09-06T11:08:52Z")

</div>

Closed on September 6, 2019, 11:08am UTC

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