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

jueves, 9 de junio de 2016

miip.sh

#!/bin/bash
echo "Actual IP :"
wget -q -O - http://wgetip.com/ . nobody
echo "dyn dns ip"

host mitesthost.noip.me