久久r热视频,国产午夜精品一区二区三区视频,亚洲精品自拍偷拍,欧美日韩精品二区

您的位置:首頁技術文章
文章詳情頁

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

瀏覽:158日期:2024-06-16 13:51:15

1 2 下一頁

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.

標簽: Unix系統
主站蜘蛛池模板: 比如县| 乌鲁木齐县| 松江区| 阳春市| 顺昌县| 台前县| 牟定县| 合川市| 盐亭县| 庆安县| 荥阳市| 江陵县| 南华县| 敖汉旗| 渭源县| 都兰县| 始兴县| 高邑县| 精河县| 庆云县| 陈巴尔虎旗| 丰台区| 昌黎县| 汉寿县| 南开区| 明星| 京山县| 雷波县| 金秀| 泰宁县| 小金县| 青海省| 北流市| 泾川县| 清原| 甘谷县| 江津市| 青州市| 弋阳县| 新竹市| 雅安市|