SCO UNIX下的反删除(undelete)
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.
- · SCO OpenServer Unix注册码大全
- · 在Sco Unix下拨号上网
- · 用shell编出来的查看dbf文件的脚本
- · SYBASE数据库安装后的配置
- · 硬盘工作模式简述
- · 编程实(c++/c)现获得当前用户名和组名的源程序
- · SCO 505、SOC 504 最小补丁集注释
- · UNIX系统交换区的管理
- · Unix 端口的灵活配置
- · SCO Unix 系统下网卡的安装及故障排除
- · 如何完成UNIX系统中大批量数据的自动备份
- · INFORMIX-ONLINE数据库三种备份方法的选择
- · SCO Unix系统下网络打印机的使用
- · UNIX下实现终端打印的几种方法
- · 使用"usermod"命令控制口令选择
- · 关于WIN 9X和SCO OpenServer的双系统安装
- · 定制刻录SCO UNIX安装光盘的步骤
- · SCO一个网卡上面绑定多个IP地址
- · sco unixware 7.1.1 全面学习资料(1)
- · sco unixware 7.1.1 全面学习资料(3)
- · sco unixware 7.1.1 全面学习资料(5)
- · sco unixware 7.1.1 全面学习资料(7)
- · sco unixware 7.1.1 全面学习资料(8)
- · vmware 下安装sco的步聚
- · sco下播放mp3
- · 在大硬盘上面安装SCO UNIX
- · 也谈vmware下sco的安装
- · SCO UNIX 5 的几个新特点
- · SCO中如何管理用户帐号
- · SCO+LINUX+WIN2K多系统引导安装
- · 安装UNIX软件需注意的几个问题
- · Stty使用技巧一则
- · SCO UNIX学习宝典(系统安装)
- · SCO UNIX学习宝典(基本配置及操作)
- · SCO UNIX学习宝典(机器启动的认识)
- · 在SCO下直接使用ISO镜像安装软件的方法
- · 寻找UNIX中CPU的“消耗大户”
- · 操作系统全接触之UNIX系统
