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  运维小勾勾  阅读(315)  评论(0)    收藏  举报