attic icon indicating copy to clipboard operation
attic copied to clipboard

Issue with modification dates of parent directories in mounted archives

Open hjudt opened this issue 10 years ago • 1 comments

I noticed that when mounting a repo using attic mount, then the parent directories will have the same timestamp as the mount point. Example:

attic create --do-not-cross-mountpoints repo::archive ~/work/somedir attic mount repo /mnt/point

If I now list repo::archive, I get a directory structure like this: /mnt/point/archive/home/user/work/somedir

"somedir" seems to have the proper creation/modification dates, but all parent directories (home, user, work) do not. They have the same dates as the mountpoint directory, that gets the timestamp when the repo was mounted.

I noticed this because I'm also using obnam for backup, and its mount command does show the proper timestamps. To me it would seem logical for attic to also store the proper timestamps for all parent directories, otherwise why store the absolute path at all?

hjudt avatar Jan 06 '15 16:01 hjudt

attic starts the recursive walk of the filesystem at the given path. it stores the full absolute path of the files, but it does not collect metadata of the directories above the starting point - and because of that, mount can not reproduce more than the name.

ThomasWaldmann avatar Jul 09 '16 01:07 ThomasWaldmann