viernes, 7 de octubre de 2016

rsync




#!/bin/bash
lockfile="/home/pepito/.tmp/rsync"


flock -w 0 $lockfile rsync -azvv --partial  --inplace --progress --delete pepito.noip.me::site /home/pepito/rsync/ >> /home/pepito/.log/rsync.log




rsyncd.conf
uid=febo
gid=febo


[site]
path = /home/febo/rsync
hosts allow = 6.6.6.6
hosts deny = *
list = true
uid = root
gid = root
read only = false