阅 读 文 章

[原创]SCO UNIX下的反删除(undelete)

[来源:网上转载 (http://www.chinaunix.net) | 作者:网友(yeungxl) | 时间:2007-05-27 | 浏览:人次 ]


SCO OpenServer支持Versioning Filesystems(undelete),但是缺省却没有打开此项功能,下面是具体细节:
    1) scoadmin中选择Hardware/Kernel Manager,选择Filesystem configuration,
       设置MAXVDEPTH为一个非零值(n=保存多少以前版本,设置较大数时要考虑磁盘空间)
       设置MINVTIME(文件versioned之前等待的秒数)
    2) 重新编译(Relink)内核;
    3) 重新启动服务器;
    4) 启用Undelete,针对需要设置undelete的目录(例如:/u/data)
       undelete -s /u/data
    5) 为了察看Versioned情况,设置以下环境变量:
       SHOWVERSIONS=1&#59; export SHOWVERSIONS
    6) 用文件察看命令察看Versioned的文件,可以根据需要恢复删除或覆盖的文件。


undelete supports the following options: 

If the -l, -p, -s, -u and -v options are not specified, undelete recovers the specified files. 


-l
print a listing of all versions of the specified file(s) 

-p
purge (permanently delete) specified source file(s) 

-s
turn the version attribute on for the specified directories and its subsequent child directories 

-u
turn the version attribute off for the specified directories 

-v
force the specified file(s) to be versioned 

The following additional options are recognized: 

-d
normally, if the specified file is a directory, undelete will operate on the files contained in that directory. If this option is specified, undelete operates on the directory itself. 


--------------------------------------------------------------------------------
NOTE: undelete does not work on directories that are mounted. 
--------------------------------------------------------------------------------



-i
undelete will prompt for confirmation prior to recovering a file that will overwrite the current version of the file. A y answer means that the undeletion should proceed. Any other answer prevents undelete from undeleting the file. 

-f
undelete will recover the file(s) without prompting even if it is overwriting over an existing current version of the file. This option overrides the -i option. Note that this is the default if the standard input is not a terminal. 
论坛热门帖子: [lch203] 写得蛮好的linux学习笔记(10-21)
[黑马制造] 学习java的30个目标(10-19)
[笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19)
[udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18)
[沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18)
TAG标签: 删除 原创 回复 引用 文件 lcz88990200 没有 设置 知道

最新评论 共有0位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表

网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.