The existing two pieces of code are basically the same, but the variables are changed, and the others are unchanged, but the results are different during execution
#backup import file,such as /etc/rc.local /var/spool/cron/root
IP=$(ifconfig eth1|sed -nr '2s#.*addr:(.*) B.*#\1#gp')
if [ $(date +%w) -eq 0 ]
Posted on Fri, 01 May 2020 22:38:25 -0700 by tigomark
As we all know, Linux system has a lot of commands, and each command has a lot of uses. If you want to remember all the uses of all commands, it's probably an impossible task.
In general, when we learn a command, either Baidu directly searches its usage, or man directly checks the lengthy help manual. Both of these can achieve our goals, but is ...
Posted on Mon, 02 Mar 2020 23:44:25 -0800 by ~n[EO]n~
Operation and maintenance automation plays an important role in the production environment, especially in the face of hundreds, thousands or even tens of thousands of servers, it is just to install the operating system, if not through automation, ...
Posted on Fri, 28 Feb 2020 01:34:08 -0800 by vargefaret
1, Forward agent
2, Reverse proxy
3, Difference between forward and reverse agents
4, Implementation code of a simple agent
1, Forward agent
Forward proxy, also known as the legendary proxy, works like a springboard. In short, I am a user, and I can't access a website, but I can access ...
Posted on Thu, 16 Jan 2020 21:20:11 -0800 by mligor
Preparations: Deploy rsync service
First mileage: confirm software installation
Second mileage: writing configuration files
Third mileage: Create backup directory management user
Fourth mileage: Create a backup data directory and modify the ownership group
Fifth Mileage: C ...
Posted on Wed, 15 Jan 2020 20:01:25 -0800 by 2005
Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
The solution set must not contain duplicate triplets.
Given array nums = [-1, 0, 1, 2, -1, -4],
A solution set is:
[-1, 0, ...
Posted on Sat, 07 Dec 2019 08:50:46 -0800 by spamoom
Xiaosheng blog: http://xsboke.blog.51cto.com
If in doubt, please Click here The author will reply in time (or comment directly in the current article).
-------Thank you for your reference. If you have any questions, welcome to exchange
Have you ever worried about the backup of online database? Here is a complete backup ...
Posted on Sat, 07 Dec 2019 06:25:10 -0800 by Dilb
Requirements: the specified directory or file should be packed to the local / backup directory with the local IP name, and the packed file should be MD5 hashed, then the hash result should be written to the md5.log file in the current directory, and then the packed file should be pushed to the backup server; the backup file 7 days ago should b ...
Posted on Wed, 04 Dec 2019 16:06:12 -0800 by Scottiebabes
In many cases, DBA s need to regularly back up the production environment as a whole and restore it to the test environment for developers to debug or test. If there is a large amount of data, the RMAN method is more efficient and time-saving. The following strategy is to deploy backup tasks in the production environment and restore the scrip ...
Posted on Tue, 26 Nov 2019 07:47:30 -0800 by furnissg
1. After deploying the rsync service according to the previous essay on rsync, you can start the deployment of inotify
2. Deployment and use of inotify
①. Check whether the system supports inotify
[root@iZ25w1kdi5zZ ~]# ls -lsart /proc/sys/fs/inotify
0 dr-xr-xr-x 0 root root 0 Sep 19 09:38 ..
0 -rw-r--r-- 1 root root 0 Jan 1 13 ...
Posted on Wed, 13 Nov 2019 12:10:37 -0800 by Hafkas