Preserve Date Created

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Preserve Date Created Sat Jan 09, 2016 11:57 am • by jcs000
I am starting out with Hazel.
I have developed a set of runs that will copy (or in some cases move) files from my local directory to a NAS server if the date added is over 6 weeks.

If I manually copy these files using the Finder, the date created matches the original file. For example, if the creation date was 11/9/05 and then the file is copied to the NAS server, this is also the creation date.

If I perform that same action using Hazel, the creation date becomes when the script is triggered. For instance if the file creation date was 11/9/05 and then the file was copied to the NAS server on 1/9/06, then this is set as the creation date.

I would like to preserve the original creation date when a file is copied or moved to mirror the behavior seen with the Finder.

Is there is a simple way do this? Any help would be appreciated.
jcs000
 
Posts: 2
Joined: Sat Jan 09, 2016 11:40 am

Re: Preserve Date Created Mon Jan 11, 2016 11:23 am • by Mr_Noodle
I assume you are using Hazel's built-in copy action? What network protocol are you using to connect to the NAS?
Mr_Noodle
Site Admin
 
Posts: 11951
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Preserve Date Created Sat Jan 16, 2016 5:12 pm • by jcs000
I am using AFP to connect to the NAS server. Using the copy command in Hazel.
If I instead use the "Sync" command rather than copy (or move) the creation date is preserved.
jcs000
 
Posts: 2
Joined: Sat Jan 09, 2016 11:40 am

Re: Preserve Date Created Mon Jan 18, 2016 12:10 pm • by Mr_Noodle
If you are ok with using the sync action then I say stick with that. Otherwise, have you tried SMB instead and does that produce similar results?
Mr_Noodle
Site Admin
 
Posts: 11951
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support