![tar 提取失败,状态为“权限被拒绝”——可以安全忽略吗?](https://linux22.com/image/1570013/tar%20%E6%8F%90%E5%8F%96%E5%A4%B1%E8%B4%A5%EF%BC%8C%E7%8A%B6%E6%80%81%E4%B8%BA%E2%80%9C%E6%9D%83%E9%99%90%E8%A2%AB%E6%8B%92%E7%BB%9D%E2%80%9D%E2%80%94%E2%80%94%E5%8F%AF%E4%BB%A5%E5%AE%89%E5%85%A8%E5%BF%BD%E7%95%A5%E5%90%97%EF%BC%9F.png)
在使用 tar 进行提取操作期间我收到以下消息:
tar czvf home.tar.gz home --exclude="*/public_ftp"
tar: home/<redacted>/public_ftp: Cannot open: Permission denied
tar: home/<redacted>/public_ftp: Cannot open: Permission denied
tar: home/<redacted>/public_ftp: Cannot open: Permission denied
tar: home/<redacted>/public_ftp: Cannot open: Permission denied
tar: home/<redacted>/public_ftp: Cannot open: Permission denied
tar: home/<redacted>/public_ftp: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
如果我不关心这些public_ftp
文件夹,那么 tar 存档的其余部分是否可以继续使用它?
答案1
权限被拒绝意味着您没有本地 public_html 文件夹的写权限。
由于您已指定,v
您可以查看您感兴趣的文件是否已被提取。
如果您不担心从指示错误的文件中恢复文件并且对其余的提取操作感到满意,那么您可以继续。