linux sync folders

Discover linux sync folders, include the articles, news, trends, analysis and practical advice about linux sync folders on alibabacloud.com

Linux File Sync Tool-rsync

加详细 -u 加上该选项后,如果DEST中的文件比SRC新,则不同步 -z 传输时压缩rsync Synchronous SSH tunnel mode演示远程同步,需要两台机器一台 192.168.1.110 (源机器)一台 192.168.1.109 (远程机器)# rsync -avPz 111/ 192.168.1.109:/tmp/111/ (把本地111目录下的文件同步到远程机器上111目录)# rsync -avPz 192.168.1.109:/tmp/111/ ./111 现在删除源机器上的111,想从远程机器上同步到源机器完整的写法:# rsync -avPz 111/ [emailprotected]:/tmp/111/ # rsync -avPz [emailprotected]:/tmp/111/ ./111 用户名@在这里可以省略,因为它可以自动识别当前终端的用户,如果是当前登录的是root用户就是root用户,如果是当前登录的是user1那就是user1指定端口同步(遇到对方端口不是22的情况)# rsyn

Linux Sync time

Tags: Local installation country Write ALS one task/dev/null ShanghaiThere are two Linux times. One is the system time, one is the hardware time!When synchronizing national time, there will be an error: No server suitable for synchronization foundNow the state authorized 210.72.145.44 is temporarily unable to useThis article is mainly about Ntpdate:Installation of NTP yum install ntp-ySecond, change the time zoneCp-y/usr/share/zoneinfo/asia/shanghai/e

Linux LAN Sync Time

server Set up scheduled tasks that are synchronized once per hour: vi/etc/cron.hourly/ntpdatehourly.sh Add the following content: #!/bin/sh Ntpdate 192.168.1.100 Stop NTPD Services: Service NTPD stop Manual synchronization time, performed on each node: ntpdate 192.168.1.100 To set up an interval at any time on the basis of synchronization method: Vi/etc/cront

Linux Sync Time

There are 2 of times in Linux: Hardware time System time These 2 times are not synchronous! If one day you find the system time is wrong, you can look at these 2 times. Hardware time written in the BIOS, the system time is the computer display time.sudo Hwclock-r2014 December 31 Wednesday 08:46 37 seconds -0.214486 secondsThis displays the time of the hardware.You can write time to the BIOS after you use Ntpdate to synchronize net

Use samba to allow linux to read files in windows shared folders

Samba allows linux to read files in the windows shared folder. first, a software directory is shared on a Windows machine and the access permission of the directory is set. The IP address of the local Windows machine is 192.168.10.58, and then runs the following command on linux: mount-tsmbfs n, the Linux code, reads files in the windows shared folder through sa

File sync rsync + ssh + inotify + unison implementation in Linux

: c9 root @ centos1The key's randomart image is:+ -- [RSA 2048] ---- +|||. ||. O ||. O. S ||. O... || O... + o. || ++. O +... || OE =... o... |+ ----------------- +[Root @ centos1 unison-2.40.63] # scp ~ /. Ssh/id_rsa.pub 2.2.2.135:/root/. ssh/authorized_keys[Root @ centos1 unison-2.40.63] # ssh 2.2.2.135Last login: Tue Dec 17 13:26:06 2013 from centos1[Root @ centos ~] # 4) Server 1 and 2 file synchronization[Root @ centos1 bin] # unison/home ssh: // root@2.2.2.145:/home -- file

Linux thread Sync (4)-Spin lock

Spin lock and Mutex function, the only one by one points is different is the mutex block after sleep out of the CPU, and the spin lock will notgive up the CPU, will be busy waiting until the lock!!!Spin lock in the user state use less, in the kernel used more! Spin Lock usage Scenario: Lock holding time is relatively short, or less than 2 times the context switch.Spin lock in the user-state function interface and mutex, the Pthread_mutex_xxx () in the mutex replaced spin, such as: Pthread_spin_i

Linux Server sync time

Linux synchronization time, at least two ways: rdate,ntpdate two kinds ofFirst detect if the system is installed with these two commandsRpm-qa |grep RdateRpm-qa |grep NtpdateIf you install something, you can use Yum-y install Rdate/ntpdateRdateFeature Description: Displays the date and time of the other host.syntax:rdate [-ps][host name or IP address ...]Additional instructions: execute the rdate instruction, ask the other host for the system time and

Linux 2.6 Kernel read Note kernel sync

July 26, 2014 kernel preemption and kernel control path designA definition of kernel preemption: If a process is executing kernel functions in the kernel state, a kernel switchover is allowed (that is, the process being replaced is the process in which the kernel function resides), and the kernel is preempted.The Linux kernel provides the ability to turn on and off kernel preemption, and the kernel cannot preempt when the Current_thread_info preempt_c

Create, copy, cut, rename, empty, and delete commands for folders under Linux

directory# MV/OPT/TEST1/TEST2123/SOFT/OPT/TEST1/TEST2123/ABC3. Use the MV command to cut folders and filesCut the folders and files under the/opt/test1/test2123/photo/to the/OPT/TEST1/TEST2123/ABC directory# mv/opt/test1/test2123/photo/*/OPT/TEST1/TEST2123/ABCIv. Directory renamingUnder Linux, moving files and renaming is the same command, MV (meaning of Move)Co

Create, copy, cut, rename, empty, and delete commands for folders under Linux

/WWWROOT/SINOZZZ123/ABC 2. Use the MV command to cut the folder. Cut the/home/wwwroot/sinozzz123/soft folder into the/HOME/WWWROOT/SINOZZZ123/ABC directory # MV/HOME/WWWROOT/SINOZZZ123/SOFT/HOME/WWWROOT/SINOZZZ123/ABC 3. Use the MV command to cut folders and files Cut the folders and files under the/home/wwwroot/sinozzz123/photo/to the/HOME/WWWROOT/SINOZZZ123/ABC directory # mv/home/wwwroot/sinozzz123/photo

How Linux servers remove garbled files and folders

How Linux servers remove garbled files and foldershome page into the folder where garbled filesBecause of the general trend of PHP, there are more and more opportunities to access Linux servers. Unlike Windows servers, Linux servers only support characters such as numbers, English, etc., and do not recognize the Chinese character. So that caused us to pack the up

Create, copy, cut, rename, clear, and delete folders in linux

Create, copy, cut, rename, clear, and delete folders in linux There is the wwwroot directory under the home directory, and the sinozzz directory under the wwwroot directory, that is,/home/wwwroot/sinozzz I. Create a directory Create a folder named sinozzz123 in the/home/wwwroot directory. Mkdir/home/wwwroot/sinozzz123 Ii. Directory Replication 1. Copy files and folders

How to delete garbled files and folders on a Linux Server

How to delete garbled files and folders on a Linux Server Due to the trend of php, there are more and more opportunities to access Linux servers. Different from Windows servers, Linux servers only support numbers, English letters, and other characters, and cannot recognize Chinese characters. Therefore, Chinese garble

Find hidden folders in Linux using Find

We can use the Find command on a Linux or Unix system to query all (all) hidden filesThe basic syntax is as follows:[[email protected] ~] #find/To find the article/Piece/clip/-name ". *"-printExplanation:1. ". *" indicates the name of the file to find. Because Linux/unix's hidden files and folder names are in "." Start with. The * indicates a wildcard, meaning to find all file names and folder names, to "."

Create, copy, cut, rename, empty, and delete commands for folders under Linux

/SINOZZZ123/ABC2. Use the MV command to cut the folder.Cut the/home/wwwroot/sinozzz123/soft folder into the/HOME/WWWROOT/SINOZZZ123/ABC directory# MV/HOME/WWWROOT/SINOZZZ123/SOFT/HOME/WWWROOT/SINOZZZ123/ABC3. Use the MV command to cut folders and filesCut the folders and files under the/home/wwwroot/sinozzz123/photo/to the/HOME/WWWROOT/SINOZZZ123/ABC directory# mv/home/wwwroot/sinozzz123/photo/*/HOME/WWWROO

Create, copy, cut, rename, empty, and delete commands for folders under Linux

/SINOZZZ123/ABC2. Use the MV command to cut the folder.Cut the/home/wwwroot/sinozzz123/soft folder into the/HOME/WWWROOT/SINOZZZ123/ABC directory# MV/HOME/WWWROOT/SINOZZZ123/SOFT/HOME/WWWROOT/SINOZZZ123/ABC3. Use the MV command to cut folders and filesCut the folders and files under the/home/wwwroot/sinozzz123/photo/to the/HOME/WWWROOT/SINOZZZ123/ABC directory# mv/home/wwwroot/sinozzz123/photo/*/HOME/WWWROO

Linux uses the ELASTICSEARCH-JDBC tool to implement MySQL sync to Elasticsearch and Linux 64-bit CentOS system installation jdk1.8

?pretty '// index have new?? Curl-xget ' Http://localhost:9200/test/ffcs/_search?pretty '// fetch display Data Query by various criteria Curl ' localhost:9200/test/ffcs/_search?pretty '-d ' { "Filter": {"term": {"name": "John"}} }‘ Curl ' localhost:9200/test/ffcs/_search?pretty '-d ' { "Filter": {"term": {"id": "5"}} }‘ The above can be explained that you are done oh ~ ~ I've tried the elasticsearch-1.7.1 version before, and I'm having an error. [ERROR] [Importer.jdbc.source.standard] [Poo

Meaning of linux folders (the most complete version)

Meaning of linux folders (the most complete version)/bin: where binary programs live. /boot: the special programs that start the system when you turn the machine on. /dev: aaaaaalll the "device" listings for hardware of every concievable flavor, along with some "imaginary" devices, lile/dev/null and/dev/zero. when you get a random number it usually comes from/dev/random. /etc: configuration files. /home: th

Linux Mount Shared folders

1. BackgroundTypically there are scenarios where developers write code in Windows and then compile in the Linux environment, and we can use the Mount command to hook code directly into a Linux environment so that shared folders on Windows are like a folder in a Linux environment.2. Sharing

Total Pages: 13 1 .... 4 5 6 7 8 .... 13 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.