CreeperHost / FTB-Backups-2

7 stars 9 forks source link

backup does not preserve file attributes like modified date and created date #49

Closed macks2008 closed 1 year ago

macks2008 commented 1 year ago

instead these get set to the time at which they are added to the archive during the backup task. For example, if the backup runs at 5 PM, all of the files inside the archive it creates will have file attributes as if they were created/modified at or shortly after 5 PM.

Expected behavior

preserve the file attributes from the "live" copy of the world data. I don't know much about your backup task or the implementation of DEFLATE (I presume) you are using, but I'm hoping there is a way to preserve the ENTIRE data being compressed, not just the file contents?

Reproduction steps

  1. Run a backup task in the usual way
  2. go to your backups folder
  3. extract the backup you just created (I used 7-zip)
  4. notice that all the file times got "squashed" in the compression.
gigabit101 commented 1 year ago

Fixed in latest release

macks2008 commented 1 year ago

Thanks! That was getting really annoying since it was making it hard to determine the age of Gravestone Mod's inventory backups from before the most recent world restore, since they all go to the same folder and are otherwise only identified by a UUID...