linux sync folders

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

Linux (centos5.0+) Unison+inotify-tools trigger bidirectional auto-sync

= "/home/server1image/" dst2= "/home/server2image/" /usr/bin/inotifywait -mrq-ecreate,delete,modify,move $src 2|whilereadline;do/ usr/bin/unison-batch $src 2ssh://$ip 2/$dst 2echo-n "$line " >> /var/log/inotify.logecho ' date|cut-d ' ' -f1-4 ' >>/var/ LOG/INOTIFY.LOGDONE2) server2 Create script unison1.sh:#/bin/baship1= "192.168.1.11" src1= "/home/server2image/" dst1= " /home/server1image/"/usr/bin/inotifywait-mrq-ecreate,delete,modify,move $src 1 |whilereadline;do/usr/bin/unison-batch $src 1ss

Linux Server Settings Auto sync time

When you log in to a Linux server, you may find that it is not the same as the actual time, you need to adjust Installing ntpdate>yum Install NTP650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/89/44/wKiom1gN35iiBXIFAAFGLdxzCAo813.jpg "title=" Qq20161024181625.jpg "alt=" Wkiom1gn35iibxifaafgldxzcao813.jpg "/> Input ntpdate time.nist.gov650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/89/41/wKioL1gN4ECg9V4yAAAzzoZb3oM77

Using Rsync sync under Linux

local machine. This mode is started when the SRC address path contains a single colon ":" delimiter.such as: rsync-avz [email protected]:/home/user/src./src4) Copy files from the remote rsync server to the local machine. This mode is started when the SRC path information contains the "::" delimiter.such as: rsync-av [email Protected]::www/databack5) Copy files from the local machine to the remote rsync server. The mode is started when the DES path information contains the "::" delimiter.such as

Linux Sync ntpd server time mode

Use Ubuntu14.04 to synchronize NTPD network time, first by referring to the following addresshttp://www.douban.com/note/171309770/You can get a common NTPD address and directly synchronize the server time with the command:[Email protected]:/home/alex# date-s "2015-01-01"Thursday, January 01, 2015 00:00:00 CST[Email protected]:/home/alex# DateThursday, January 01, 2015 00:00:01 CST[Email protected]:/home/alex# ntpdate s1a.time.edu.cn2 May 10:24:22 ntpdate[3246]: Step time server 202.112.10.60 off

Linux time-of-day automatic Sync settings (rdate,ntpdate two methods)

in the Ntpd-network time Protocol (NTP) daemon page. After a suitable period ofMourning, the Ntpdate program was to being retired from this distributionSynopsisntpdate [ -46BBDQSUV] [-a key] [-e Authdelay] [-K keyfile] [-o version] [-p samples] [-tTimeout] [-u user_name] server [...]DESCRIPTION[Refer to the Linux Man manual for details]Date Time ServerSynchronization time, you must have a time server. Normally, we don't have to build it ourselves, we

Linux IPC Sync (ii): Read/write lock

The allocation rules for read and write locks are as follows:1. As long as no thread holds a specified read-write lock for writing, then any number of threads can hold the read-write lock for reading;2. A read-write lock can be allocated for write only if no thread holds a specified read-write lock for reading or for writing.This type of access is also known as shared-exclusive lockout (shared-exclusion)So I think of a scenario like this:Thread A to write data, the lock has not been blocked, the

Linux Sync-related content

variable shared between threads, which consists of two actions: one thread waits for the condition variable to be set up, and the other thread causes the condition to be set. To prevent competition, the use of condition variables is always combined with a mutex.Allows a thread to wait for a specific condition to be sent in a non-competitive manner when used with a condition variable and mutexThe condition itself is protected by a mutex, and the thread must lock the mutex before changing the con

Live sync using rsync+inotify-tools+ssh files in Linux

In some server architectures, you will experience file synchronization issues, such as a site mirroring backup, synchronization of files to multiple CDN nodes, and so on. There are two main issues that need to be addressed 1. How to implement file synchronization problem? 2. When do I perform a sync operation? File synchronization can be used Rsync+ssh, when to synchronize their own operation? Maybe some people would think of Cron, this is true, can

Total Pages: 13 1 .... 9 10 11 12 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.