Jump to content

[Guide] ICH777 OpenVPN client + Synology hyperBackup + rsync daemon


Recommended Posts

I have been looking for a way to have a Synology backup to my unraid with hyperbackup over a VPN. And finally I found a good solution.
I want to document it here. I hope this is usefull for someone. If you can spot issues/problems please let me know

 

Why no wireguard? As far as I know, this is not possible on my synology.
 

  1. Install VPN package on synology and enable the OpenVPN
    See Step_1.PNG
  2. Export the OpenVPN configuration, replace remote YOUR_SERVER_IP with your server IP/DYNDNS in the VPNConfig.ovpn file
  3. Configure the ICH777 OpenVPN client following the instructions (do I need to elaborate more on this?)
    The basic steps for a OpenVPN connection that requires a Username and Password are: 1) Rename your *.ovpn to 'vpn.ovpn' and place it in your OpenVPN-Client directory, 2) Create in the same directory a file named 'vpn.auth' and place your Username in the first line and the Password for the connection in the second line and save it 3) Restart the container open the logs and see if the connection to your VPN establishes successfully.
  4. Add 2 extra paths to this Unraid docker: See Step_4.PNG
  5. Create the install_rsync.sh file and place it in the correct path with following contents: (linux linefeeds!)
    Restart your OpenVPN client container after this. VPN connection should be established and "ps aux" should show rsync daemon installed and running.
    apt-get update
    apt-get -y install rsync
    
    cat <<EOT > /etc/rsyncd.conf
    uid             = root
    gid             = root
    use chroot      = no
    max connections = 4
    pid file        = /var/run/rsyncd.pid
    log file        = /hyperBackup/rsyncd.log
    timeout         = 600
    reverse lookup = no
    
    [hyperSYN]
       path = /hyperBackup
       comment = /hyperBackup
       read only = FALSE
    EOT
    
    rsync --daemon

     

  6. Go to Diskstation and create Hyperbackup databackup task: (see Step_6.PNG)
  • First screen: destination type: rsync
  • Second screen, use options in screenshot:
        IP is the IP your docker gets from the OpenVPN server
        Username and password doesn't matter
        Backup module is the one in square brackets from the install_rsync file
        Directory is the HBK folder that will hold your backup (will be autocreated)
  • The options in the following screens you can choose as you wish

 

Normally this should work ...

Don't know if it would be better to create a new docker. Thanx @ich777 for the OpenVPN client docker :)

 

Step_1.PNG

Step_4.PNG

Step_6.PNG

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...