gosetr.blogg.se

Realtime file synchronization
Realtime file synchronization






realtime file synchronization
  1. #Realtime file synchronization install#
  2. #Realtime file synchronization software#
  3. #Realtime file synchronization code#
  4. #Realtime file synchronization password#

Nowadays, file synchronization software solutions are delivered through cloud services, making it easier to synchronize, save, and protect data. Hosts allow = 192.168.10.The best file synchronization software allows you to back up your files for access from any device, whether at home, in the office, or on the road.įile synchronization solutions are often an integral part of backup software to make it easier to manage and restore data when needed. Ignore errors: Ignore the error, optional Path: The server provides access to the directory Pid file: Process corresponding process number file Max connections: Maximum connection 0 represents unlimited $ / usr / bin / rsync -port = 873 -address = 192.168.10.20 - Daemon #Noot Rsync service

#Realtime file synchronization password#

$ VIM / Etc/images.pas # Create a password file

#Realtime file synchronization install#

​ * delete = 'running': Lsyncd does not delete files on the target at startup, but will delete the files deleted during normal operation Third, build RSYNC Client $ yum -y install rsync ​ * delete = 'startup': Lsyncd will delete the file on the target at startup, but not normal operation. ​ * delete = false: Lsyncd does not delete any files on the target. The content deleted during startup and during normal operation

#Realtime file synchronization code#

LSYNCD will delete anything that is not in the source code on the target.

  • delete : In order to keep Targets completely synchronize with Souce, lsyncd will delete = true by default to allow synchronous deletion.
  • exclude : This option excludes files that do not need synchronization, which can be used by its own regular, such as:.
  • delay : When the event is accumulated, when it is accumulated, the synchronization is triggered.
  • init : When False indicates that only the file will change the event after the LSYNCD process starts, otherwise, it is, the default is true.
  • ::bakup, rsyncuser: Synchronized users set up on the standby server, 192.168.99.237: 备用 server address, ::backup: Module name, synchronization path set on the standby server.
  • target : To sync the target directory, generally specified under the RSYNC server module, description:.
  • source : Specify the directory to monitor, be sure to use the absolute path.
  • default.rsync: Specify the LSYNCD mode, in addition, also> default.direct, default.rsyncssh mode.
  • realtime file synchronization

    maxDelays : When the incident is hit, it will take a synchronization after being hit.Ģ.1.2 SYNC section: Mainly used to define some settings when synchronization, you can synchronize multiple directories simultaneously.maxProcesses : Specify the maximum number of processes when synchronization.inotifyMode : Specify events to monitor, such as Closewrite, Modify, Closewrite or Modify, the default is Closewrite.nodaemon=true: The default is not to enable the daemon.statusInterval : Record the status of the monitored directory at a time after multiple seconds.statusFile: Define the location of the LSYNCD monitoring directory status file.logfile: Specifies the log file storage position generated by the LSYNCD tool itself.$ VIM / Etc/images.pas # Create a password authentication fileĢ.1 Profile Description: 2.1.1 Settings section: Mainly defined some of the option settings of the lsyncd tool itself StatusFile = "/var/log/lsyncd/lsyncd.status", Synchronize the file in the server / lvzhenjiang directory to the / mnt directory of the Client side! Second, build LSYNCD SERVER $ yum install epel-release -y Lysncd is actually the LUA language encapsulated inotify and rsync tools! 2.1.2 SYNC section: Mainly used to define some settings when synchronization, you can synchronize multiple directories simultaneously.2.1.1 Settings section: Mainly defined some of the option settings of the lsyncd tool itself.








    Realtime file synchronization