Linux command
recover 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
tldr restore
Interactive restore
recover -if [backup.dump]
List the table of contents
recover -tf [backup.dump]
Full filesystem restore
recover -rf [backup.dump]
Extract specific files
recover -xvf [backup.dump] [path/to/file]
Compare archive with filesystem
recover -Cf [backup.dump]
说明
recover is an alternative name/symlink for the restore utility used by the dump/restore ext2/3/4 backup system. It reads a backup archive produced by `dump(8)` and writes the selected files back to disk. Interactive mode (`-i`) gives you a tiny shell for browsing the archive: `ls`, `cd`, `pwd`, `add`, `delete`, `extract`, `quit`. On some systems (notably NSR/NetWorker), `recover` refers instead to a very different tool — the client-side restore interface for the Legato/EMC NetWorker backup server. The flags and behavior below describe the dump/restore lineage; for NetWorker, consult `recover(8)` on that system.
参数
- -i
- Interactive restore: browse the archive and pick files.
- -r
- Restore an entire filesystem. Run in an empty, freshly created filesystem.
- -R
- Resume a previously interrupted `-r` restore.
- -t
- Print the table of contents of the archive.
- -x
- Extract the named files (or the whole archive if no names given).
- -C
- Compare archive contents with the filesystem.
- -f _file_
- Archive file or device (e.g. `/dev/nst0` or `backup.dump`). Use `-` for stdin.
- -v
- Verbose: print each file as it is processed.
- -N
- Do everything except actually writing files to disk (dry run).
- -y
- Do not ask whether to abort on tape errors; always try to continue.
- -h
- Do not recurse into directory hierarchies when extracting.
- -m
- Extract by inode number instead of name.
- -s _n_
- Skip to the _n_th dump file on a multi-file tape.
- -b _size_
- Block size (in kilobytes) for reads.
FAQ
What is the recover command used for?
recover is an alternative name/symlink for the restore utility used by the dump/restore ext2/3/4 backup system. It reads a backup archive produced by `dump(8)` and writes the selected files back to disk. Interactive mode (`-i`) gives you a tiny shell for browsing the archive: `ls`, `cd`, `pwd`, `add`, `delete`, `extract`, `quit`. On some systems (notably NSR/NetWorker), `recover` refers instead to a very different tool — the client-side restore interface for the Legato/EMC NetWorker backup server. The flags and behavior below describe the dump/restore lineage; for NetWorker, consult `recover(8)` on that system.
How do I run a basic recover example?
Run `tldr restore` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -i do in recover?
Interactive restore: browse the archive and pick files.