getfacl、setfacl文件权限的备份与恢复
#文件权限备份
用getfacl 例子: getfacl -R /path/to/file > file_bak
#文件权限恢复
用 setfacl 例子: setfacl --restore=file_bak /path/to/file
如果想要恢复到其他机器可以使用scp传输并恢复
#文件权限备份
用getfacl 例子: getfacl -R /path/to/file > file_bak
#文件权限恢复
用 setfacl 例子: setfacl --restore=file_bak /path/to/file
如果想要恢复到其他机器可以使用scp传输并恢复