1.tar-p whether to keep the root directory-T view the contents of the compressed file-n 201401010 backup date after
tar -zcpf/tar/data2. tar. GZ/ETC/*conf[[email protected]/]# CD Tar/[[email protected] tar]# ll total 80-rw-r--r--1 root ro OT 39051 09-08 23:42 data1.tar.gz-rw-r--r--1 root root 39046 09-08 23:43 data2.tar.gz
2.dump-0 Full Backup
3.restore Recovery-TF View-RF Recovery
[email protected] dump]# dump-0-f/dump/data1.dump/dev/sda1 dump:date of this level0Dump:tue Sep9 xx: to: - thedump:dumping/DEV/SDA1 (/boot) to/dump/data1.dump Dump:label:/Boot dump:writingTenKilobyte Records dump:mapping (pass I) [Regular files] dump:mapping (pass II) [directories] dump:estimated 6512blocks. Dump:volume1Started with block1At:tue Sep9 xx: to: - thedump:dumping (pass III) [directories] dump:dumping (pass IV) [regular files] dump:closing/dump/data1.dump Dump:volume1Completed At:tue Sep9 xx: to: - theDump:volume1 6560Blocks (6. 41MB) DUMP:6560Blocks (6.41MB) on1Volume (s) dump:finishedinch Lessthan a second dump:date of this level0Dump:tue Sep9 xx: to: - thedump:date This DUMP completed:tue Sep9 xx: to: - thedump:average transfer rate:0kb/s Dump:dump is done[[email protected] dump]#
[Email protected] boot]# restore-tf/dump/Data1.dumpdumpDate: Tue Sep9 xx: to: - theDumped from:the epochlevel0Dump Of/boot on localhost.localdomain:/dev/Sda1label:/Boot2 . One./lost+found16065./Grub16067./grub/grub.conf16066./grub/splash.xpm.gz16068./grub/Menu.lst16069./grub/Device.map16070./grub/Stage116071./grub/Stage216072./grub/e2fs_stage1_516073./grub/fat_stage1_516074./grub/ffs_stage1_516075./grub/iso9660_stage1_516076./grub/jfs_stage1_516077./grub/minix_stage1_516078./grub/reiserfs_stage1_516079./grub/ufs2_stage1_516080./grub/vstafs_stage1_516081./grub/xfs_stage1_5 -./initrd-2.6. --348. El5.img A./.vmlinuz-2.6. --348. El5.hmac -./system.map-2.6. --348. El5 -./config-2.6. --348. El5 the./symvers-2.6. --348. el5.gz -./vmlinuz-2.6. --348. el5
[Email protected] boot]# Restore-rf/dump/data1.dump
4.CP command to create an ISO file
CP /dev/cdrom/dump/linux.iso
Mount -o loop/dump/linux.iso/mnt
5.DD command-if= input device-of= output device
DD if=/dev/cdrom of=/dump/linux1.iso
DD if=/dev/sda of=/dev/sdb # Common HDD-to-copy
Linux file backup