Problems with Rsync from OMV to Qnap

  • Hi.


    Hopefully somebody can help me. I want to backup folders from my OMV to a Qnap. I set up a rsync-job. But when I start it I get this error:


    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: unexplained error (code 255) at io.c(605) [sender=3.0.9]


    Does anybody know why?


    Rsync Server is activated on Qnap, also user and password is set in Qnap on the rsync server tab.


    Thanks a lot.


    Regards lulu

  • hi,


    do you have rsync server enabled on QNAP?




    i ´m using a small bash-script on my omv for that.
    it makes:


    - first of all check if qnap is online with wget
    - when its online


    rsync the hole raid5 to QNAP
    - when its offline .. wake it up and wait 5 minutes then check again with wget
    - when its online
    rsync the .....


    - after this send email with:
    success
    or
    failed


    copy the script if you like it to your omv ... make it executeable ... and create a crontab entry:


    like:


    00 22 * * * /bin/bash /root/nas2nas_sync.sh


    Script will start at 22 o´clock


    On the qnap i have run another script who is checking the discs every 5 minutes. if all discs in sleep ... send qnap to sleep (think S3) :D


    OMV Script:


    QNAP Script:



    Bash: send_nas_to_sleep_if_idle.sh
    #!/bin/bash
    lines=`hdparm -C /dev/sd[a-f]|grep "active/idle"|wc -l|tr -d ' '|cut -f1 -d' '`
    if [ $lines == "0" ]; then
       cat /etc/config/sleepmail.txt|sendmail -t
       ntpdate time.euro.apple.com 2>/dev/null >/dev/null
       hwclock --systohc
       sleep 30
       echo mem >/sys/power/state
    fi


    crontab on QNAP:


    */5 * * * * /etc/config/send_nas_to_sleep_if_idle.sh




    the scripts are certainly not perfect ... but they work! :)


    br,
    rowie

    HP Proliant Gen8 with ESXi6.5


    Storage - Raid5 with 4 x 3TB WDRed - System on microSD / Datastore on Samsung 850Pro - 250GB

  • you have to install etherwake and sendEmail on omv!

    HP Proliant Gen8 with ESXi6.5


    Storage - Raid5 with 4 x 3TB WDRed - System on microSD / Datastore on Samsung 850Pro - 250GB

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!