注册本站  论坛  繁體中文

电脑技巧
手机 | MP3 | MP4 | 显卡 | 主板 | 显示器 | 光存储 | 笔记本 | 网络设备 | 移动存储 | 数码相机
键鼠 | CPU | 音箱 | GPS | 电视 | 服务器 | 投影机 | 机箱电源 | 品牌电脑 | 办公打印 |
| 网站首页 | Cisco | Windows | Linux | Java | Dotnet | Oracle | 网页设计 | 平面设计 | 安全 | 软件应用 | 电脑维修 | 办公维修 |
您现在的位置: 电脑技巧 >> 服务器 >> 服务器学堂 >> 服务器正文

如何在SCO UNIX下的反删除(undelete)

文章来源:中关村在线 更新时间:2007-12-19 11:59:50 【 】 【加入收藏

  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; 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.

  -r

  undelete will operate recursively on any directories in the argument list. Symbolic links that are encountered with this option will not be traversed.

  -m [+-]days

  undelete will only consider files that were deleted less than ( - ), greater than ( + ) or exactly (neither - nor + ) days ago.

  • 上一篇服务器:

  • 下一篇服务器:
  • 最 新 热 门
     应用:巧妙设置 让DHCP服务器服务到底
     Exchange服务器中处理不能发送的信息
     应用技巧:Apache下服务器虚拟主机设置
     应用技巧:ISA防火墙简单安装配置实例
     如何保护虚拟机环境下的数据安全
     在Linux的系统环境下配置WU-FTP服务器
     新网络存储解决方案 元谷网牛就是牛
     网管员必读 数据存储的基础知识数据镜像
     Linux系统上架设一台高容量的POP3服务器
     快速优化部署服务器系统“服务”模块
    最 新 推 荐
     应用:巧妙设置 让DHCP服务器服务到底
     Exchange服务器中处理不能发送的信息
     应用技巧:Apache下服务器虚拟主机设置
     应用技巧:ISA防火墙简单安装配置实例
     如何保护虚拟机环境下的数据安全
     在Linux的系统环境下配置WU-FTP服务器
     新网络存储解决方案 元谷网牛就是牛
     网管员必读 数据存储的基础知识数据镜像
     Linux系统上架设一台高容量的POP3服务器
     快速优化部署服务器系统“服务”模块
    相 关 文 章

    如何保护虚拟机环境下的数据安全
    教您如何计算WEB服务器的最大负载量?
    看经销商如何“黑钱” 揭露四大“猫腻”
    学堂 教您如何用SATA与SAS磁盘建立RAID
    菜鸟学堂 如何实现Win2003负载平衡
    如何架设windows2003远程访问服务器
    如何在线试用Windows Vista Business
    ZOL菜鸟学堂 如何让老电脑实现虚拟化
    在sco unix5.05 如何安装配置路由器
    ZOL教你学:如何选择最合适的RAID级别

    | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 网站公告

     

    Copyright 2006-2008 pcjx.com All Rights Reserved
    电脑技巧 版权所有 粤ICP备06059145号 地图
    本网站所有内容未经许可不得转载或做其他使用