[Linux] classic interview questions system management backup strategy

SkyBiuBiu 2021-06-23 22:49:43
linux classic interview questions management

[Linux] Classic interview questions - System management - Backup policy

One 、 Backup directory

1.1 System catalog

Catalog Content
/etc/sysconfig/network-scripts/ Network profile
/etc/resolv.conf DNS Parsing files
/etc/hosts hosts The mapping file
/etc/fstab Boot mount record
/etc/inittab Set power on runlevel
/etc/profile Set global variables
/etc/group User group profile
/etc/passwd User account information
/etc/shadow User password information
/etc/sudoers sudo The configuration file
/etc/rsyslof.conf Log settings file
/usr/local Put the source code package to compile the installed software
/var/log/messages System default log file
/var/log/secure Verify authorization aspect log
/var/log/boot.log System startup log
/var/log/cron cron Process log
/var/log/httpd(apache2) apache journal
/var/log/mail mail journal
/var/log/samba samba journal
/var/log/sssd Daemons security log

1.2 Service catalog

With MySQL、Apache For example :

Catalog Content
/var/lib/mysql RPM Packages installed MySQL
/usr/local/mysql/data/ Source code package compiled MySQL
/var/www/html/ Apache Website content
/etc/httpd/conf/httpd.conf Apache The configuration file
/var/log/httpd/ Apache Log files

Two 、 Backup policy

 View the source image

2.1 Full backup

Full backup (Full Backup): Back up a copy of the same data .

Common commands :cp、tar、dump(ext4)、xfsdump(xfs)

2.2 Incremental backup

Differential backup (Differential Backup): The previous backup is for reference .

Common commands :cp、tar、dump(ext4)、xfsdump(xfs)

2.3 Differential backup

Differential backup (Incremental Backup ): Backup with the first backup as a reference .

Common commands :cp、tar、dump(ext4)、xfsdump(xfs)

3、 ... and 、 Backup frequency

3.1 Real time backup

  • Such as MySQL Master slave synchronization , Distributed storage OSD Active and standby write of .

3.2 Scheduled backup

  • Like every day 、 Weekly backup , Usually by “ Script + Timing task ” Realization .

Four 、 Backup location

4.1 Local backup

  • Local : Backup on different servers , On different hard disks .

4.2 Remote backup

  • Off site : Backup in different data centers , Different computer rooms .

5、 ... and 、 Reference plan

5.1 database server

Take a database for example :

  • Daily backup data ( Remote backup )

    • MySQL database ( Master slave backup , Do incremental backup once a day )
  • Data backed up every week ( Remote backup )

    • MySQL database ( Do a full backup once a week )

    • Important system data ( The configuration file 、 Log class )

    • Web data (Apache)

    • Other service related data .


  1. Introduction and practice of springboot cache
  2. 解决No enum constant org.apache.ibatis.type.JdbcType.XXX
  3. Solve no enum constant org.apache.ibatis . type.JdbcType.XXX
  4. JVM bytecode instruction manual - view Java bytecode
  5. How much do you know about Java data types?
  6. ELF_ Plead -- blacktech hackers organize malware for Linux
  7. Introduction to HTTP message format
  8. MySQL 数据类型
  9. MySQL基础命令中文解析
  10. JDBC事务
  11. JDBC transaction
  12. 1.3Java基础入门【运算符】
  13. Spring cloud course: 12. Similarities and differences of Eureka / consult / zookeeper
  14. Linux operation and maintenance (1) - command line
  15. Java number class, character class, string class
  16. Java计算机IT编程文档常见单词翻译
  17. Tencent interview: how to achieve the isolation level between MySQL transaction and mvcc?
  18. Translation of common words in it programming documents of Java computer
  19. Algorithm - a classic SQL question and a Java algorithm question
  20. Algorithm - a classic SQL question and a Java algorithm question
  21. Tencent interview: how to achieve the isolation level between MySQL transaction and mvcc?
  22. Principle analysis of MySQL mvcc
  23. Zookeeper使用场景
  24. Usage scenarios of zookeeper
  25. JAVA_逻辑运算符与位运算符使用
  26. Simple use of Java date class
  27. Basic learning of JavaScript (1)
  28. Oracle Data Types(数据类型)
  29. Dubbo、SpringCloud
  30. Geohash principle and operation of redis Geo
  31. Oracle data types
  32. MySQL data archiving tool Recommendation -- MySQL_ archiver
  33. Springboot mini - Solon详解(七)- Solon Ioc 的注解对比Spring及JSR330
  34. Spring boot mini - Solon (7) - annotation comparison of Solon IOC spring and jsr330
  35. Linux操作系统的常用命令
  36. Common commands of Linux operating system
  37. Java 基本类型
  38. Java basic types
  39. MySQL学习-排序与分组函数
  40. MySQL性能与调优
  41. MySQL learning sorting and grouping function
  42. MySQL performance and tuning
  43. java object
  44. Shortcut keys for eclipse
  45. Summary of Java Architect's growth path (continuous update)
  46. Introduce an OA open source product based on springboot!
  47. JavaScript 日期时间格式化
  48. JavaScript date time formatting
  49. Linux common command collection, memo, Notepad, online record
  50. Redis set password
  51. (3) Hive built-in operators and functions
  52. Netty study notes
  53. Three steps to integrate activator monitoring function into your springboot
  54. Detailed explanation of Linux awk command
  55. Linux基础命令
  56. Linux basic command
  57. Javadoc document generation
  58. Uniapp (Vue general) integrates Tencent location service SDK -- multi platform small program general
  59. Slowhttptest slow attack tool use details
  60. Official spring boot starters