[UNIX]链结文件的备份

[复制链接]
查看11 | 回复5 | 2005-10-30 17:05:33 | 显示全部楼层 |阅读模式
如:
/etc/hosts文件是指向/etc/file/hosts的链结。
我用备份软件备份/etc/hosts文件,测试恢复出来的只是一个符号联结。
请问如何才能备份真实的文件?
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
/etc/hosts文件不应该是一个链接呀,ls -l /dev/hosts 一下看是不是链接。
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
我是举个例子
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
-h Forces the tar command to follow symbolic links as if they were normal files
or directories. Normally, the tar command does not follow symbolic links.
试验:
tar chvf test.tar test
会将test目录中的link当作普通文件来备份。
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
Thanks slls
BTW , when I can got the privilege to access the FTP Server?
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
已经可以了,欢迎继续支持本论坛!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行