

You can enable compression and archiving while attempting the file transfer to sync directories by using the highlighted section in your lsyncd config file ~]# cat /etc/nf
Grsync for centos7 archive#
Enable compress and archive with lsyncd for directory mirroring StatusFile = "/var/log/lsyncd/lsyncd-status.log",ħ. Here is a sample lsyncd config file, we use default.rsyncssh under sync section instead of default.rsync ~]# cat /etc/nf This configuration does spawn rsync processes like default.rsync but additionally will spawn /usr/bin/ssh HOST mv ORIGIN DESTINATION commands.ĭifferent to default.rsync it does not take an uniform target parameter, but needs host and targetdir separated. This configuration differs from the standard rsync configuration in that it uses ssh commands to move files or directories locally at the target host instead of deleting and transferring again. Sync directories and files from source on localhost to different target host using rsyncssh Default.direct uses (just like default.rsync) rsync on startup to initially synchronize the target directory with the source directory.ĪLSO READ: Beginners guide to mount NFS share in Linux with examples 6. Sync local directories and files using default.directĭefault.direct can be used to keep two local directories in sync with better performance than using default.rsync.

StatusFile = "/var/log/lsyncd-status.log",įor more details of supported directives check official page of lysyncdģ. write the status file at shortest after 20 seconds has passed.
Grsync for centos7 update#

Grsync for centos7 how to#
ALSO READ: How to disable tty or enable tty console in Linux ( RHEL / CentOS 7)
