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 tar command to realize tape backup in Linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

In this issue, the editor will bring you about how to use tar commands to achieve tape backup in Linux. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.

1. View the directory on the tape

Tar tvf / dev/st0

2. View the contents of the tape and output it to a file

Tar tvf / dev/st0 > stlist

3. Back up the file

Tar cvf / dev/st0 / etc

Tar cvf / dev/st0 / etc/hosts / boot / etc/smb.conf

4. Release the corresponding files on the tape according to the specified file contents or directory

Tar-T stlist-xvf / dev/st0

Tar xvfz / dev/st0 / etc/

6. Attach individual files to the back of the tape

Tar-r / etc/hosts / etc/passwd-vf / dev/st0

7. Delete one or more files from an existing tape

Tar-- delete etc/hosts-vf / dev/st0

8. Attach an existing tar document to the back of the tape

Tar-A pamd.tar-vf / dev/st0

This is how to use the tar command to achieve tape backup in the Linux shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

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

Servers

Wechat

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

12
Report