In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
In centos7, the file save type defaults to the .xfs type. In our daily work, we will back up important data files on a regular basis, sometimes because of operational errors or improper, resulting in file deletion and loss. As long as there is a backup in advance, the original files can be restored through operation.
1. Preparation for the experiment:
1. In the VMware virtual machine, add a 20G disk sbd, partition it into sdb1, format it into .xfs type, and mount it to the / data directory, you can use it normally.
2. Under the data directory, create a passwd file and a directory test (create a file named t01.txt under the test directory) as follows:
2. The experiment begins:
Step 1: back up files using the xfsdump command
Usage: xfsdump-f backup location path or device file to be backed up
Step 2: delete everything in the / data directory
Step 3: use the xfsrestore command to restore files
Usage: the location of xfsrestore-f recovery files, the location of recovered files
Note: restrictions on the use of xfsdump
1. Only mounted file systems can be backed up
2. You must use the permission of root to operate.
3. Only XFS file system can be backed up.
4. The backed up data can only be parsed by xfsrestore
5. Cannot back up two file systems with the same UUID
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.