Realizing the snapshot backup function of "copy on write" based on rsync and ln

1, Fundamentals Here, "copy on write" is enclosed with a quotation mark, because this is specifically for the copy on write effect when rsync backup is used, rather than the actual copy on write effect. Its purpose is as follows: After backing up the data using rsync, create a snapshot immediately: The data state of the snapsh ...

Posted by primuz on Mon, 06 Apr 2020 00:17:49 -0700

Linux command -- file

File is used to view file types. Different from Windows system, Linux system does not reflect the file type through the file name, so you need to use the file command to confirm. [admin@local ~]$ file exe exe: Bourne-Again shell script text executable As above, use the file command to view the type of exe file, whic ...

Posted by kanikilu on Sun, 05 Apr 2020 15:50:44 -0700

Introduction to the varnish foundation of WEB caching system

Previously, we talked about the cache control mechanism in http protocol and the introduction of varnish architecture components. Please refer to https://www.cnblogs.com/qiuhom-1874/p/12620538.html Today, let's talk about how to configure and use varnish; We mentioned earlier that there are two configuration files in varnish, one is / etc/varni ...

Posted by zarathu on Sat, 04 Apr 2020 17:38:21 -0700

033 remote execution command

Execute command on serverIt seems that there is no module to execute the command before. Now it is added import subprocess obj = subprocess.Popen('dir',shell=True,stdout=subprocess.PIPE) #Get an object. The command is in front, shell The script can be executed, stdout Set a process pipeline. There are actually two processes, one is the main p ...

Posted by rdog157h on Sat, 04 Apr 2020 15:55:01 -0700

The nature of creating users in linux

ref: Parameters for the useradd command /etc/default/useradd configuration file /Files in etc/skel directory Create a user manually ref: http://blog.csdn.net/ouyang_peng/article/details/8732928 http://blog.sina.com.cn/s/blog_6a58bdf40102v2zf.html Parameters for the useradd command [vincent@localhost ~]$ use ...

Posted by ghettopixel on Sat, 04 Apr 2020 15:03:48 -0700

Self-timer Tutorial 52 Python_adb Run Shell Script

Android, as a Linux terminal, must have run Shell scripts that support the.sh suffix. Sometimes the test environment prepares or intercepts complex logs for a long time, and so on, the development will give you some Shell scripts. Benefits of Shell script execution: Quick and efficient, Shell scripts are supported on Linux terminals. Since th ...

Posted by timvw on Sat, 04 Apr 2020 09:51:50 -0700

HTK 3.5 decoding tool HVITE stand-alone project (implementation of Visual Studio Code)

HTK3.5 supports DNN HTK3.5 supports DNN, and originally wanted to make a model of HMM+DNN as a comparison of HMM+GMM.However, HTK does not support real-time HMM+DNN decoding.There are two reasons. HTK does not support real-time calculation of the features of MFCC_0_D_A_Z, that is, the mean of the feature space cannot be calculated i ...

Posted by pieychpi on Sat, 04 Apr 2020 02:16:22 -0700

Record a journey of cc attack and modify it with ddos deflate

The beginning of the story, on March 30, is supposed to be a friendly business attack on the company's website. The attack starts at 4 p.m. on the attack website, there is also Alibaba cloud ip in it. Angry. I want to complain. Start to talk about how to solve it. First, use netstat -ntu | awk '{print $5}' | cut -d: -f1 | so ...

Posted by squizz on Fri, 03 Apr 2020 07:00:16 -0700

Pit filling: command line prompt is: - bash-4.1$

When adding users, which files will be modified? New user's home directory template / etc/skel/ Case - the command line prompt is: - bash-4.1$ Solution: Specify new user password rule / etc/login.defs When adding users, which files will be modified? /etc/passwd stores user information /etc/group store ...

Posted by Pioden on Wed, 01 Apr 2020 13:58:52 -0700

python3 implementation of process monitoring with the same name in windows

python3 implementation of process monitoring with the same name in windows The SVN service of the old SVN server of the company is often shut down unexpectedly. It needs to write a simple monitoring script to monitor it; First, multiple SVN services use different ports. Use the wmic command to check the ports occupied ...

Posted by dud3r on Wed, 01 Apr 2020 10:03:26 -0700