# Which attributes are preserved by Kopia?

**URL:** <https://kopia.discourse.group/t/which-attributes-are-preserved-by-kopia/2012>\
**Category:** Support\
**Created:** [May 8, 2023, 4:26am UTC](https://kopia.discourse.group/t/which-attributes-are-preserved-by-kopia/2012 "2023-05-08T04:26:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronal\_A](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/ronal_a/32/694_2.png) [@Ronal\_A](https://kopia.discourse.group/u/Ronal_A)\
**Post date:** [May 8, 2023, 4:26am UTC](https://kopia.discourse.group/t/which-attributes-are-preserved-by-kopia/2012/1 "2023-05-08T04:26:26Z")

</div>

Hi I’m wondering which attributes are preserved by Kopia. In rsync i can preserve pretty much all file attributes like date/time, owner(uid/gid), permission, posix ACL, extended attributes. I’ve read the FAQ, i couldn’t find any info on this.

We can do baremetal restore if all attributes are preserved, simply recreate partitions/lvm, restore all files. recreate swap, fix boot loader.

Thank you for reading this.

---

<div class="post-metadata">

**Author:** ![iBackup](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/ibackup/32/355_2.png) [@iBackup](https://kopia.discourse.group/u/iBackup)\
**Post date:** [May 8, 2023, 3:36pm UTC](https://kopia.discourse.group/t/which-attributes-are-preserved-by-kopia/2012/2 "2023-05-08T15:36:36Z")

</div>

Install `acl` package and do `getfacl` into file that will go into snapshot too, just before taking snapshot by utilizing kopia’s hooks, so in case you need to restore files/directories content including meta data, you can restore later with `setfacl`

---

<div class="post-metadata">

**Author:** ![Ronal\_A](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/ronal_a/32/694_2.png) [@Ronal\_A](https://kopia.discourse.group/u/Ronal_A)\
**Post date:** [May 9, 2023, 1:18am UTC](https://kopia.discourse.group/t/which-attributes-are-preserved-by-kopia/2012/3 "2023-05-09T01:18:24Z")

</div>

ah, i see. so kopia doesn’t do this natively but we can dump the all ACLs using getfacl, then restore them later using setfacl, right ?

---

<div class="post-metadata">

**Author:** ![iBackup](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/ibackup/32/355_2.png) [@iBackup](https://kopia.discourse.group/u/iBackup)\
**Post date:** [May 9, 2023, 9:01am UTC](https://kopia.discourse.group/t/which-attributes-are-preserved-by-kopia/2012/4 "2023-05-09T09:01:46Z")

</div>

Yes, `acl` on Unix, `icacls` on windows, then you can use all types of backends for repositories
