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

bj097

macrumors 6502
Original poster
Dec 27, 2013
347
23
I find that when I make a copy of a file, the creation date will be updated to the current time, is it possible to keep the creation date original for the new copy? I want to make a backup of some of my files but I find that the original creation date just changes, this will cause me some inconvenience...
 
I find that when I make a copy of a file, the creation date will be updated to the current time, is it possible to keep the creation date original for the new copy? I want to make a backup of some of my files but I find that the original creation date just changes, this will cause me some inconvenience...
There's a command line program called robocopy in Windows that can do that and a lot more. It's great for backups like you describe and handles the dates itself. (about what to copy and what not to copy)
 
  • Like
Reactions: bj097
I find that when I make a copy of a file, the creation date will be updated to the current time, is it possible to keep the creation date original for the new copy? I want to make a backup of some of my files but I find that the original creation date just changes, this will cause me some inconvenience...
Copy directory including subdirectories
Code:
robocopy D:\Source-Folder C:\Destination-Folder /mt /s /dcopy:t /copy:dt /r:0

Copy directory including subdirectoreies (including empty)
Code:
robocopy D:\Source-Folder C:\Destination-Folder /mt /e /dcopy:t /copy:dt /r:0

Overwrite directory files
Code:
robocopy D:\Source-Folder C:\Destination-Folder /mt /s /dcopy:t /copy:dt /r:0 /im /is /it

Copy file
Code:
robocopy D:\Source-Folder C:\Destination-Folder File.txt /dcopy:t /copy:dt /r:0

Overwrite file
Code:
robocopy D:\Source-Folder C:\Destination-Folder File.txt /dcopy:t /copy:dt /r:0 /im /is /it

 
  • Like
Reactions: bj097 and bobcomer
Copy directory including subdirectories
Code:
robocopy D:\Source-Folder C:\Destination-Folder /mt /s /dcopy:t /copy:dt /r:0

Copy directory including subdirectoreies (including empty)
Code:
robocopy D:\Source-Folder C:\Destination-Folder /mt /e /dcopy:t /copy:dt /r:0

Overwrite directory files
Code:
robocopy D:\Source-Folder C:\Destination-Folder /mt /s /dcopy:t /copy:dt /r:0 /im /is /it

Copy file
Code:
robocopy D:\Source-Folder C:\Destination-Folder File.txt /dcopy:t /copy:dt /r:0

Overwrite file
Code:
robocopy D:\Source-Folder C:\Destination-Folder File.txt /dcopy:t /copy:dt /r:0 /im /is /it

Hello

For this one--->Copy directory including subdirectoreies (including empty)

Is it copying everything in a folder to another location without losing anything but will not overwrite anything in the destination location in case there is a folder with the same name?

I will probably not copy a single file, I will have everything sorted in Windows interface first and then what I want is as I described before, keep the original creation date for the copy, this is my primary purpose.

Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.