How to backup and restore permissions of the entire directory on Linux - Linux Tutorials - Learn Linux Configuration

The following two commands getfacl and setfacl are very handy tools as they allow Linux administrators to take a snapshot of any current permissions settings of any directory and if needed re-apply those permissions back recursively. Let’s have a look at the following example:


This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-backup-and-restore-permissions-for-entire-directory-on-linux/