SCO UNIX下的反刪除(undelete)(轉)
SCO UNIX下的反刪除(undelete)(轉)[@more@]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.
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.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10617542/viewspace-946702/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- reiserfs檔案系統反刪除(Undelete)操作的實踐(轉)delete
- ZT:reiserfs檔案系統反刪除(Undelete)操作的實踐delete
- SCO-UNIX在vmware下的安裝(轉)
- SCO Unix系統下網路印表機的使用(轉)
- SCO UNIX--安裝(轉)
- SCO UNIX 下裝置驅動程式開發 (轉)
- SCO UNIX 下裝置驅動程式開發(轉)
- 轉:Linux、AIX UNIX、SCO UNIX下檢視硬體配置小結LinuxAI
- SCO UNIX網路安全管理 (轉)
- SCO UNIX安裝參考(轉)
- linux環境下的undelete(轉)Linuxdelete
- UNIX 下 SCO TCP/IP ftp 命令表TCPFTP
- SCO UNIX--基本配置及操作(轉)
- SCO UNIX 一些經驗(轉)
- UNIX下檔案的刪除與回收-“ rm”煩惱的解決(轉)
- 在SCO UNIX系統中使用另一unix硬碟(轉)硬碟
- ORACLE 7.3.4 for SCO Unix 安裝說明(轉)Oracle
- SCO UNIX--高階進階(一)(轉)
- SCO UNIX上cpio命令詳細用法(轉)
- SCO UNIX 系統核心引數的意義(轉)
- SCO UNIX5 的幾個主要系統程式(轉)
- SCO UNIX學習寶典 高階進階(轉)
- 遠端撥號登入SCO UNIX主機(轉)
- SCO UNIX系統故障特徵、分析及解決(轉)特徵
- SCO UNIX學習寶典(基本配置及操作)(轉)
- SCO UNIX學習寶典(系統安裝)(轉)
- SCO UNIX系統root密碼丟失的處理(轉)密碼
- 定製燒錄SCO UNIX安裝光碟的步驟(轉)
- Sybase 11.0.3 For SCO UNIX 5.0.5安裝配置步驟(轉)
- SCO UNIX學習寶典(機器啟動的認識)(轉)
- 列表篇_深,淺拷貝,刪除,反轉,排序排序
- [精華] SCO UNIX安裝參考
- (個人)Linux或UNIX系統下徹底刪除oracleLinuxOracle
- Windows & Unix 檔案格式之迷 < VI下刪除文字中的^M>Windows
- Linux檔案系統的反刪除方法簡介(轉)Linux
- Vista反刪除系統更多資訊展示(轉)
- 在linux及unix系統下批次刪除oracle檔案LinuxOracle
- SCO OpenServer 5下新增硬碟方法(轉)Server硬碟