当前位置: 首页 > news >正文

广西建设厅网站培训中心做网站接电话一般要会什么

广西建设厅网站培训中心,做网站接电话一般要会什么,河南网站建设yipinpai,查企企官方网站Linux dump命令用于备份文件系统。 dump为备份工具程序,可将目录或整个文件系统备份至指定的设备,或备份成一个大文件。 dump命令只可以备份ext2/3/4格式的文件系统, centos7默认未安装dump命令,可以使用yum install -y dump安…

Linux dump命令用于备份文件系统。

dump为备份工具程序,可将目录或整个文件系统备份至指定的设备,或备份成一个大文件。

dump命令只可以备份ext2/3/4格式的文件系统

centos7默认未安装dump命令,可以使用yum install -y dump安装此命令。

全量备份/boot分区

[root@s135 ~]# dump -0uj -f /root/boot.bak.bz2 /boot/
DUMP: Date of this level 0 dump: Fri Jul 30 16:10:06 2021
DUMP: Dumping /dev/sda1 (/boot) to /root/boot.bak.bz2
DUMP: Label: none
DUMP: Writing 10 Kilobyte records
DUMP: Compressing output at compression level 2 (bzlib)
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 115437 blocks.
DUMP: Volume 1 started with block 1 at: Fri Jul 30 16:10:06 2021
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: Closing /root/boot.bak.bz2
DUMP: Volume 1 completed at: Fri Jul 30 16:10:22 2021
DUMP: Volume 1 took 0:00:16
DUMP: Volume 1 transfer rate: 6656 kB/s
DUMP: Volume 1 116040kB uncompressed, 106506kB compressed, 1.090:1
DUMP: 116040 blocks (113.32MB) on 1 volume(s)
DUMP: finished in 16 seconds, throughput 7252 kBytes/sec
DUMP: Date of this level 0 dump: Fri Jul 30 16:10:06 2021
DUMP: Date this dump completed: Fri Jul 30 16:10:22 2021
DUMP: Average transfer rate: 6656 kB/s
DUMP: Wrote 116040kB uncompressed, 106506kB compressed, 1.090:1
DUMP: DUMP IS DONE[root@s135 ~]# ll -h /root/
总用量 105M
-rw-------. 1 root root 1.8K 7月 30 16:03 anaconda-ks.cfg
-rw-r–r--. 1 root root 105M 7月 30 16:10 boot.bak.bz2[root@s135 ~]# df -hT
文件系统 类型 容量 已用 可用 已用% 挂载点
/dev/mapper/centos-root ext4 9.8G 1.2G 8.1G 13% /
devtmpfs devtmpfs 908M 0 908M 0% /dev
tmpfs tmpfs 919M 0 919M 0% /dev/shm
tmpfs tmpfs 919M 8.5M 911M 1% /run
tmpfs tmpfs 919M 0 919M 0% /sys/fs/cgroup
/dev/sda1 ext4 976M 115M 795M 13% /boot
/dev/mapper/centos-home ext4 17G 45M 16G 1% /home
tmpfs tmpfs 184M 0 184M 0% /run/user/0

增量备份/boot分区

在/boot分区创建一个测试文件hi.txt[root@s135 ~]# cd /boot/
[root@s135 boot]# touch hi.txt
[root@s135 boot]# echo “this is a test” > hi.txt然后增量备份/boot分区[root@s135 ~]# dump -1uj -f /root/boot.bak1.bz2 /boot/
DUMP: Date of this level 1 dump: Fri Jul 30 16:17:15 2021
DUMP: Date of last level 0 dump: Fri Jul 30 16:16:41 2021
DUMP: Dumping /dev/sda1 (/boot) to /root/boot.bak1.bz2
DUMP: Label: none
DUMP: Writing 10 Kilobyte records
DUMP: Compressing output at compression level 2 (bzlib)
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 39 blocks.
DUMP: Volume 1 started with block 1 at: Fri Jul 30 16:17:15 2021
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: Closing /root/boot.bak1.bz2
DUMP: Volume 1 completed at: Fri Jul 30 16:17:15 2021
DUMP: 40 blocks (0.04MB) on 1 volume(s)
DUMP: finished in less than a second
DUMP: Date of this level 1 dump: Fri Jul 30 16:17:15 2021
DUMP: Date this dump completed: Fri Jul 30 16:17:15 2021
DUMP: Average transfer rate: 0 kB/s
DUMP: Wrote 40kB uncompressed, 11kB compressed, 3.637:1
DUMP: DUMP IS DONE查看增量备份文件大小[root@s135 ~]# ll -h /root
总用量 105M
-rw-------. 1 root root 1.8K 7月 30 16:03 anaconda-ks.cfg
-rw-r–r--. 1 root root 12K 7月 30 16:17 boot.bak1.bz2
-rw-r–r--. 1 root root 105M 7月 30 16:10 boot.bak.bz2

查询分区的最新备份记录

[root@s135 ~]# dump -W
Last dump(s) done (Dump ‘>’ file systems):
/dev/mapper/centos-root ( /) Last dump: never
/dev/sda1 ( /boot) Last dump: Level 1, Date Fri Jul 30 16:17:15 2021
/dev/mapper/centos-home ( /home) Last dump: never

备份文件或目录

备份文件和目录只能使用0级别,即只能全量备份

[root@s135 ~]# dump -0j -f /home/etc.dump.bz2 /etc/
DUMP: Date of this level 0 dump: Fri Jul 30 16:23:29 2021
DUMP: Dumping /dev/mapper/centos-root (/ (dir etc)) to /home/etc.dump.bz2
DUMP: Label: none
DUMP: Writing 10 Kilobyte records
DUMP: Compressing output at compression level 2 (bzlib)
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 35010 blocks.
DUMP: Volume 1 started with block 1 at: Fri Jul 30 16:23:30 2021
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: Closing /home/etc.dump.bz2
DUMP: Volume 1 completed at: Fri Jul 30 16:23:35 2021
DUMP: Volume 1 took 0:00:05
DUMP: Volume 1 transfer rate: 2470 kB/s
DUMP: Volume 1 39190kB uncompressed, 12350kB compressed, 3.174:1
DUMP: 39190 blocks (38.27MB) on 1 volume(s)
DUMP: finished in 5 seconds, throughput 7838 kBytes/sec
DUMP: Date of this level 0 dump: Fri Jul 30 16:23:29 2021
DUMP: Date this dump completed: Fri Jul 30 16:23:35 2021
DUMP: Average transfer rate: 2470 kB/s
DUMP: Wrote 39190kB uncompressed, 12350kB compressed, 3.174:1
DUMP: DUMP IS DONE
dump [参数]
常用参数参数说明
-0123456789备份的层级
-b指定区块的大小,单位为KB
-B指定备份卷册的区块数目
-c修改备份磁带预设的密度与容量
-d设置磁带的密度。单位为BPI
-f指定备份设备
-h当备份层级等于或大于指定的层级时,将不备份用户标示为”nodump”的文件
-j使用bzlib库压缩备份文件
-n当备份工作需要管理员介入时,向所有”operator”群组中的使用者发出通
-s备份磁带的长度,单位为英尺
-T指定开始备份的时间与日期
-u备份完毕后,在/etc/dumpdates中记录备份的文件系统,层级,日期与时间等
-w与-W类似,但仅显示需要备份的文件
-W显示需要备份的文件及其最后一次备份的层级,时间与日期
http://www.yayakq.cn/news/72073/

相关文章:

  • 爬虫做视频网站详细的营销推广方案
  • 公司网站发布流程全网精选小程序
  • 响应式企业网站制作网页时首先要确定什么
  • 太仓建设网站企业名录2022版
  • 手机网站改版seo优化专员招聘
  • 青岛网站推广怎么选安庆做网站电话
  • 大气的企业网站模板怎么百度推广
  • 企业网络营销企业网站建设章节习题静安网站建设关键词优化seo
  • 网站使用授权书可以做网站的服务器
  • 网站备案成功后网页设计人员招聘
  • 手机网站关键词快速排名网络公司网站首页
  • 小型网站建设费用浙江电信关于网站备案信息核实的公告
  • 淘宝网店网站建设目的网站建设中 html免费
  • 云南省住房与城乡建设厅网站深圳到北京
  • 个人网站做淘客哪个网站可以做平面兼职
  • 佛山网站建设咨询庆阳市建设局网站
  • 网站导航栏代码做公司网站公司多少钱
  • 网站设计公司 广州网页用什么软件做
  • 有没有做策划案例的网站企业网站如何建立
  • 关于做ppt的网站有哪些内容深圳门户网站制作
  • 网站开发大作业安庆网站建设服务网
  • 网站设计品参考消息电子版在线阅读
  • 网站建设中敬请期待 图片动易网站怎么进入后台
  • python做网站好不好云服务器建设简易网站
  • 北京网站策划服务自己做的网站有排名吗
  • 常州市建设银行网站seo排名优化是什么意思
  • 建立网站需要做什么装修设计用什么软件
  • 开原网站制作公司如何做网站301重定向
  • 合肥的网站建设公司做视频网站犯法吗
  • 合同 制作 网站网页设计快速培训