#!/bin/bash

while [ 1 ] 
do
rsync -avz --password-file=/root/my.secrets /root/b root@127.0.0.1::logs 
rm /root/a/* -rf
done
