rsync

Как при помощи rsync копировать файлы между Linux-серверами mht
Linux: примеры использования rsync mht
Rsync настройка бэкапа на CentOS / Debian / Ubuntu mht

#!/bin/bash
 
rsync -avzh --exclude 'logs' --exclude 'backups' --backup-dir=`date +%Y-%m-%d_%H-%M` --delete-after ../rsync /var/tmp/111

daemon

/etc/rsyncd.conf
max connections = 10
exclude = lost+found/
dont compress   = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2 *.rar *.7z *.mp3 *.jpg
log file = /var/log/rsyncd.log
 
[Projects]
    uid = mz
    gid = mz
    path = /mnt/samba/Projects/
    comment = Архив проектов
    read only = no
    list = yes
    auth users = mz
    secrets file = /etc/rsyncd.scrt
    hosts allow = localhost 10.0.68.0/25
    hosts deny = *
/etc/rsyncd.scrt
mz:mz2000