Language translations now possible!
echo -e "\n`date`\n >> /home/tc/rsync.log
echo -e "\n`date`\n" >> /home/tc/rsync.log
cat /home/tc/cpdr33.sh#!/bin/sh -x#copy files download an dr 3.3ifconfig eth0:0 | grep -q "Bcast:" || echo "Network is down" >> /home/tc/rsync.logrsync -avh -e "ssh -p 2112" root@192.168.3.3:/mnt/sda2/remote_source/ /mnt/sda1/local_destionation >> /home/tc/rsync.log 2>&1 & tc@box:~$ ./cpdr33.shtc@box:~$ cat rsync.logWed Jul 31 11:33:01 UTC 2019receiving incremental file listsent 20 bytes received 53 bytes 16.22 bytes/sec
tc@box:~$ cat /home/tc/rsync.logWed Jul 31 11:40:32 UTC 2019Host key verification failed.rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.2]
rsync -avh -e "ssh -p 2112" root@192.168.3.3:/mnt/sda2/remote_source/ /mnt/sda1/local_destionation >> /home/tc/rsync.log 2>&1 &
sudo -u tc rsync -avh -e "ssh -p 2112" root@192.168.3.3:/mnt/sda2/remote_source/ /mnt/sda1/local_destionation >> /home/tc/rsync.log 2>&1 &
rsync -avh -e "ssh -p 2112 -i /home/tc/id_rsa" root@192.168.3.3:/mnt/sda2/remote_source/ /mnt/sda1/local_destionation >> /home/tc/rsync.log 2>&1 &