Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the Linux dump command

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how to use the Linux dump command". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The Linux common command dump is used to back up ext2 or ext3 file systems. You can back up a directory or an entire file system to a specified device, or to a large file.

Dump is used to back up ext2 or ext3 file systems

Syntax dump (options) (parameters) option-0123456789: backup level;-b: specify the size of chunks in KB;-B: specify the number of chunks in backup volumes;-c: modify the preset density and capacity of backup tapes;-d: set the density of tapes. Unit is BPI;-f: specify backup device;-h: files marked as "nodump" are not backed up when the backup level is equal to or greater than the specified level;-n: notify all users in the "operator" group when the backup requires administrator intervention;-s: length of backup tape in feet;-T: specify backup time and date "- u: after the backup is complete, record the file system, level, date, and time of the backup in / etc/dumpdates;-w: similar to-W, but only show the files that need to be backed up;-W: display the files to be backed up and the level, time, and date of the last backup." Parameter backup source: specify the file, directory, or file system to back up.

The instance backs up all the contents of the / home directory to the / tmp/homeback.bak file with a backup level of 0 and records the relevant information in / etc/dumpdates:

Dump-0u-f / tmp/homeback.bak / home backs up all the contents of the / home directory to the / tmp/homeback.bak file at backup level 1 (only data that has changed since the last backup with level 0) and records the relevant information in / etc/dumpdates:

Dump-1U-f / tmp/homeback.bak / home can realize full + incremental backup, full + differential backup through backup level of dump command, and unattended backup with crontab.

This is the end of "how to use the Linux dump Command". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report