getfacl、setfacl文件权限的备份与恢复

#文件权限备份
用getfacl 例子: getfacl -R /path/to/file > file_bak
#文件权限恢复
用 setfacl 例子: setfacl --restore=file_bak /path/to/file

如果想要恢复到其他机器可以使用scp传输并恢复

posted @ 2023-03-01 16:46  Yusir-SRE  阅读(174)  评论(0编辑  收藏  举报