extundelete 0.2.4 命令詳解 (未集成)


extundelete 用於恢復由 rm 誤刪除的文檔。

Linux 操作係統本身沒有如微軟 Windows 的迴收站功能。

注意:使用 extundelete 恢復之前,不能有其它磁盤讀寫操作,否則可能無法恢復。

另請參閱: df     rm

基本用法     詳細用法

root:~# df -h (獲取磁盤信息)
Filesystem      Size  Used Avail Use% Mounted on
udev            225M     0  225M   0% /dev
tmpfs            49M  2.9M   46M   6% /run
/dev/vda1        40G   15G   23G  40% /
tmpfs           244M     0  244M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           244M     0  244M   0% /sys/fs/cgroup
tmpfs            49M     0   49M   0% /run/user/1000
tmpfs            49M     0   49M   0% /run/user/0
 
root:~# extundelete /dev/vda1 --restore-all
			

基本語法

extundelete [options] [--] device-file
			

options 選項

參數 EN 解釋 中文翻譯 備注
--version, -[vV] Print version and exit successfully. 打印版本並成功退齣。
--help Print this help and exit successfully. 打印此幫助並成功退齣。
--superblock

Print contents of superblock in addition to the rest.

If no action is specified then this option is implied.

打印超級塊內容,除剩餘外。

若未指定動作,則隱含此選項。

--journal Show content of journal. 展示流水賬內容。
--after dtime Only process entries deleted on or after 'dtime'. 僅處理 dtime (包括) 之後刪除的條目。
--before dtime Only process entries deleted before 'dtime'. 僅處理 dtime 之前刪除的條目。

Actions 動作

參數 EN 解釋 中文翻譯 備注
--inode ino Show info on inode 'ino'. 顯示 ino 索引節點的有關信息。
--block blk Show info on block 'blk'. 展示 blk 塊的有關信息。
--restore-inode ino[,ino,...]

Restore the file(s) with known inode number 'ino'.

The restored files are created in ./RECOVERED_FILES with their inode number as extension (ie, file.12345).

還原具有已知索引節點編號 ino 的文件。

在 ./RECOVERED_FILES 中創建還原文件,采用索引節點編號作為擴展名 (即 file.12345)。

--restore-file 'path'

Will restore file 'path'.

'path' is relative to root of the partition and does not start with a '/'.

The restored file is created in the current directory as 'RECOVERED_FILES/path'.

將還原指定 path 文件。

path 相對於分區根,且不以 / 開頭。

在當前目錄下按 RECOVERED_FILES/path 形式創建還原文件。

--restore-files 'path'

Will restore files which are listed in the file 'path'.

Each filename should be in the same format as an option to --restore-file, and there should be one per line.

將還原在指定 path 文件中列齣的文件。

每文件名格式應該如 --restore-file 選項,且每行應該一個。

--restore-directory 'path'

Will restore directory 'path'.

'path' is relative to the root directory of the file system.

The restored directory is created in the output directory as 'path'.

將還原指定 path 目錄。

path 相對於文件係統根目錄。

將在輸齣目錄按 path 創建還原目錄。

--restore-all Attempts to restore everything. 試圖還原一切。
-j journal Reads an external journal from the named file. 從命名文件讀取外部流水賬。
-b blocknumber Uses the backup superblock at blocknumber when opening the file system. 使用 blocknumber 處的備份超級塊,當打開文件係統時。
-B blocksize

Uses blocksize as the block size when opening the file system.

The number should be the number of bytes.

使用 blocksize 作為塊大小,當打開文件係統時。

數字應該是字節數。

--log 0 Make the program silent. 使程序沉默。
--log filename Logs all messages to filename. 將所有消息日誌記錄到 filename 文件名。
--log D1=0,D2=filename

Custom control of log messages with comma-separated list of options.

Dn must be one of info, warn, or error.

Omission of the '=name' results in messages with the specified level to be logged to the console.

If the parameter is '=0', logging for the specified level will be turned off.

If the parameter is '=filename', messages with that level will be written to filename.

采用逗號分隔的自定義選項列錶的日誌消息控製。

Dn 必須是 info、warn 或 error 之一。

省略 =name 將導緻將具有指定級彆的消息被日誌記錄到控製颱。

若參數為 =0,將關閉指定級彆的日誌記錄。

若參數為 =filename,將具有該級彆的消息寫入 filename 文件名。

--log info,error

--log warn=0

--log error=filename

-o directory

Save the recovered files to the named directory.

The restored files are created in a directory named 'RECOVERED_FILES/' by default.

將還原文件保存到 directory 命名目錄。

默認情況下,在名為 RECOVERED_FILES/ 的目錄下創建還原文件。

基本用法

功能 命令 文字解釋 示例 示例解釋
所有 extundelete /dev/vda1 --restore-all 還原 /dev/vda1 設備下的所有刪除文件
目錄 extundelete /dev/vda1 --restore-directory /var/ 還原 /dev/vda1 設備 /var/ 目錄下的所有刪除文件
版本 extundelete -v 展示版本信息
extundelete -V
extundelete --version
幫助 extundelete --help 展示幫助信息

 

版權聲明: 本文為獨傢原創稿件,版權歸 樂數軟件 ,未經許可不得轉載。