rsync from OMV to Hidrive (Strato)

  • I want to sync data between OMV as source and Hidrive (Provider is Strato) as destination. It works fine with the command line:
    root@omv:~# rsync -rltDvz /media/cc606d61-fdf2-470e-9db7-3bd360798069/Dokumente/PowerShell »user«@rsync.hidrive.strato.com:/users/»user«/Dokumente/
    (where »user« is a replacement for the real name).
    The result ist:
    »user«@rsync.hidrive.strato.com's password:
    sending incremental file list
    PowerShell/
    PowerShell/Set ExecPolicy.ps1
    PowerShell/Verzeichnis.ps1
    PowerShell/sync.ps1


    sent 530 bytes received 73 bytes 92.77 bytes/sec
    total size is 376 speedup is 0.62


    Using the OMV-GUI results in an error-message, no matter if Dry-Run or Real:
    Please wait, syncing </media/cc606d61-fdf2-470e-9db7-3bd360798069/Dokumente/PowerShell//> to <»user«@rsync.hidrive.strato.com:/users/»user«/Dokumente/> ...


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


    The corresponding OMV-GUI see attached file "rsync_setup.JPG".


    Is there a chance to see the command that is generated by the OMV-GUI?
    Has anyone experience with OMV and Hidrive?





  • I was following this guide (in German). Steps:

    1 ) in System | Certificates | SSL: added key "OMV"

    2 ) clicked on "Edit" and copied Public key to clipboard (symbol in the right hand upper corner)

    3 ) created text file, named it omv.pub, opened file in Notepad++, saved the file to my laptop

    4 ) in HiDirve settings, imported public key via uploading omv.pub. appears to work fine

    5 ) used Putty to ssh to my OMV5 (since it is running on a Raspberry Pi4 the user is pi)

    6 ) executed rsync from terminal in order to retrieve the ECDSA key fingerprint of HiDrive:

    Code
    rsync -av --delete -e ssh /srv/dev-disk-by-label-[xxx]/config/ [USERNAME]@rsync.hidrive.strato.com:/users/[USERNAME]/OMVBackup/
    [xxx] = the label of my drive
    [USERNAME] = my HiDrive username

    7 ) checked whether HiDrive's ECDSA key fingerprint is in known-hosts:

    Code
    nano /home/pi/.ssh/known_hosts

    The file used to be empty but has now entries

    8 ) set-up a rsync job in the OMV gui:

    pasted-from-clipboard.png


    9 ) after saving the settings, manually ran the rsync job.

    outcome:

    Code
    Please wait, syncing </srv/dev-disk-by-label-[xxx]/config/> to <[USERNAME]@rsync.hidrive.strato.com:/users/[USERNAME]/OMVBackup> ...
    Host key verification failed.
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]
    The synchronisation has completed successfully.
    Done ...


    10) alternatively, I tried the password method.

    outcome:

    Code
    Please wait, syncing </srv/dev-disk-by-label-[xxx]/config/> to <[USERNAME]@rsync.hidrive.strato.com:/users/[USERNAME]/OMVBackup> ...
    Host key verification failed.
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]
    The synchronisation has completed successfully.
    Done ...



    Can someone help?


    Best, M

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!