Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Blackfield

macrumors newbie
Original poster
Sep 22, 2014
10
3
Hi,

Tried to copy a folder to external drive for backup:

- Copy using Finder preserves the creation and modification date. :)
- Copy using terminal "cp -r" or "cp -a" changes creation date and modification date to today. :mad:
- Copy using terminal "rsync -avP" or "rsync -avPHE" changes modification date to today. :(

Is there a console command that is identical to Finder copy that preserves both creation date and modification date?
 

MacUser2525

Suspended
Mar 17, 2007
2,097
377
Canada
Even though the rsync man page says -a includes the -t switch, I have found I have to use -at to preserve modification dates/times.
Well you learn something new every day... I always go with the -avP thinking I was getting that already.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.