Created Date Not Preserved when using Backup

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
gcam
Posts: 5
Joined: 25 Jan 2015 06:56

Re: Created Date Not Preserved when using Backup

Post by gcam »

I tried your suggestion with changing CustomCopyNoDoEvents=1.
I turned on the Custom Copy with the Preserve All Dates checked.
I copied a folder over and got the same results. This time 2 files did not have their created dates preserved. (As mentioned, the number and files always varies.)
Please see image below.
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 67279
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Created Date Not Preserved when using Backup

Post by admin »

Did you take care to do it in the foreground (NOT XYcopy)?

gcam
Posts: 5
Joined: 25 Jan 2015 06:56

Re: Created Date Not Preserved when using Backup

Post by gcam »

I did not use XYcopy for this test. I changed the .ini file and turned off the background processing as you described. I right-dragged the folder and selected "copy here". (Prior to doing the copy, I checked Custom Copy in the configurations so that I could enable the "preserve all dates".)

admin
Site Admin
Posts: 67279
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Created Date Not Preserved when using Backup

Post by admin »

OK, my hopes were low anyway.

So I'm out of ideas at the moment. I cannot reproduce nor understand it. :|

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Created Date Not Preserved when using Backup

Post by PeterH »

Trying to understand a bit more, and not knowing about the abilities of Windows interfaces, I'd like to re-ask my question: how do you do it? First copy the file, leading to Created=Now, and then changing Created to a copy of the original Created, or is it some other way?
And: would you know about some other way? (I.e. copyfile could have a flag saying "copy Created", or whatever.)

Filehero
Posts: 2734
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Created Date Not Preserved when using Backup

Post by Filehero »

I'm not sure wether the following is of any help with SC backup but it should help to get more clarity.

At the weekend I added a new 3TB drive to my setup and had to do darn loooooooooong copy jobs. Since my first tests using Acronis drive clone indicated days of work, I decided to use robocopy /mir because it's from Seattle (not eager to make tests here) and because the command's job is perfecty transparent (mirror an existing structure to another location).

The result was/is
- create date: set to the real creation date (makes sense, because the folder/file has actually been created during the copy job)
- modified date: set to mod date of the source thereby reflecting the content history/genesis

Though this observation (create date > modified date) is irritating each time (and usually I pay attention only during this sort of major setup changes) it makes perfect sense to me. The file system nodes of the backuped copies are truly created at the time of its creation. Simple logic as that.


Cheers,
Filehero

admin
Site Admin
Posts: 67279
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Created Date Not Preserved when using Backup

Post by admin »

PeterH wrote:Trying to understand a bit more, and not knowing about the abilities of Windows interfaces, I'd like to re-ask my question: how do you do it? First copy the file, leading to Created=Now, and then changing Created to a copy of the original Created, or is it some other way?
And: would you know about some other way? (I.e. copyfile could have a flag saying "copy Created", or whatever.)
First copy the file, leading to Created=Now, and then changing Created to a copy of the original Created.
There is no other way.

As filehero implicitly remarked, preserving the created date on a copy is actually against the very sense of this date.
I personally have turned off "preserve all item dates" in Custom Copy, but turned on in Backup.

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Created Date Not Preserved when using Backup

Post by PeterH »

admin wrote:First copy the file, leading to Created=Now, and then changing Created to a copy of the original Created.
There is no other way.

As filehero implicitly remarked, preserving the created date on a copy is actually against the very sense of this date.
I personally have turned off "preserve all item dates" in Custom Copy, but turned on in Backup.
Thanks for the info. I was afraid that it's that way, just wanted to verify...

To Created: I think we expect the same:
- for a normal Copy operation Created should be Now
- for a Backup (and later Restore) Created should be as it was original
(I see copying pictures from a CF-card as kind of backup :ninja: )

My astonishment about Created later than Modified lies some years in the past. 8)
Though I must admit: I *was* astonished :lol:

gcam
Posts: 5
Joined: 25 Jan 2015 06:56

Re: Created Date Not Preserved when using Backup

Post by gcam »

Thanks for your input Filehero, and what you are saying logically makes sense. But in my case when backing up the SD Card, I do wish to maintain the Created Date as when the picture was created. I agree with PeterH that when making a copy you do want the created date to be NOW, but when backing up the created date should be preserved.

Since admin (who I am thinking is the software developer) cannot duplicate my problem I began to think that this is a problem local to my laptop. I started the laptop in SAFE MODE and ran a few tests and out of all my tests the created date was preserved. I ran the test twice with about 75 files and each time all the created dates mirrored the original. While in safe mode, I counted the number of Windows Services running and there were 24. When I went into Windows normally, there are over 70 services running. I'm thinking that it may have to do with one or more of these services, but now to figure out what ones. Anyone have any ideas on how I can identify what service may be causing the problem, rather than me stopping each one to determine what one is the culprit?

I also have a question regarding the Default Sort Order of the files. When looking at the SD Card (source) in the E: drive, the files are sorted (and indexed) by when they were created. However, after the backup is made the copied files have a default sort (and index number) by the name of the file. You can see this in my previous screenshot. The .MOV file on the SD card is Index #4, but in the destination folder it has an index number of #15. Is this just because the files are copied over in File Name order rather than Created order? Is there anywhere I can change this? I know this sounds like a petty problem, but it just makes things easier to compare.

admin
Site Admin
Posts: 67279
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Created Date Not Preserved when using Backup

Post by admin »

Next beta might help a bit:

Code: Select all

    * Custom Copy: Added error trapping for the unlikely case that preserving 
      the item dates fails for some reason. There should be an error message in 
      the copy report now that tells more about the problem.

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Created Date Not Preserved when using Backup

Post by PeterH »

Though I have another situation (backing up to NAS) I tested the change. Result:
- Created dates were being set to current, but
- found no hint for missing date-change in the log

Is this expected?

(Now) I don't really need it - but would be fine.
And would have made me notice this NAS-problem months ago!

admin
Site Admin
Posts: 67279
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Created Date Not Preserved when using Backup

Post by admin »

That means that Windows *thinks* that setting the dates was successful. (I don't countercheck by reading the date again -- performance...)

Question: do you use "Safe Overwrite", and does it make a difference if you don't?

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Created Date Not Preserved when using Backup

Post by PeterH »

admin wrote:That means that Windows *thinks* that setting the dates was successful. (I don't countercheck by reading the date again -- performance...)
Ah - just returncode for setting DateCreated?
This should(!) mean that the NAS accepts the req from windows, but doesn't execute it?
admin wrote:Question: do you use "Safe Overwrite", and does it make a difference if you don't?
Tested without: see no difference.
(Has only meaning if files already exist, I think? For the situations i test files are always new. I drag a folder into a NAS folder, where the original name doesn't exist. Though I tested unsetting the option.)

By the way: Configuration/Jump to Setting... neither finds "Safe Overwrite" by safe nor by overwrite.
OK: not too hard to guess for File Operations/Backup...

admin
Site Admin
Posts: 67279
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Created Date Not Preserved when using Backup

Post by admin »

Yes (too all).

Post Reply