plakar icon indicating copy to clipboard operation
plakar copied to clipboard

archive should preserve the extended attributes

Open omar-polo opened this issue 10 months ago • 3 comments

maybe we should have something to preserve these xattrs on archives. GNU tar has (obviously) an option for this.

this actually still has to be discussed, noting it here to avoid forgetting it.

omar-polo avatar Feb 11 '25 09:02 omar-polo

Modification time should be preserved; not sure if that is under xattrs, but as of plakar v0.4.22-alpha, modtime is not restored:

$ ls -al znew # mod time on the restored file is the write time
-rwxr-xr-x 1 jaten jaten 5071 Feb 17 20:09 znew
$ ls -al /bin/znew # which does not match the mod time on the original backedup file.
-rwxr-xr-x 1 root root 5071 Apr  8  2022 /bin/znew
$ 
$  stat /bin/znew
  File: /bin/znew
  Size: 5071            Blocks: 16         IO Block: 4096   regular file
Device: 10303h/66307d   Inode: 1048690     Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2022-04-14 06:18:31.000000000 -0500
Modify: 2022-04-08 06:12:17.000000000 -0500
Change: 2022-04-14 06:18:31.999302147 -0500
 Birth: -
$ stat znew
  File: znew
  Size: 5071            Blocks: 16         IO Block: 4096   regular file
Device: 10303h/66307d   Inode: 79715547    Links: 1
Access: (0755/-rwxr-xr-x)  Uid: ( 1000/   jaten)   Gid: ( 1000/   jaten)
Access: 2025-02-17 20:09:48.898326320 -0600
Modify: 2025-02-17 20:09:48.902326410 -0600
Change: 2025-02-17 20:09:48.902326410 -0600
 Birth: -
 $ 

glycerine avatar Feb 18 '25 02:02 glycerine

That was merged by @ericfaurot in #1026

poolpOrg avatar May 28 '25 22:05 poolpOrg

Ooops, nope, he only did the mtime part, not the xattr, reopening.

poolpOrg avatar May 28 '25 23:05 poolpOrg