Schlagwort: hyperbackup

1 Reply

Synology – Backup to RaspberryPi

Using „HyperBackup“ to create Backups is the best and easiest way to save all your data and settings on your Synology. Finding a target to backup is not that easy. You can buy an other Synology Produkt or set up an Linux Server. My Solution is a Raspberry Pi with Raspbian / Raspberry Pi OS and an external USB Drive attached. Installing and mounting the USB drive has to be done before you can use this help to install the RSYNC-Server.

Mount your external device and make sure that it will be always mounted automatically after restarts.
In our example we use the path /mnt/USBDevice

First you have to install the rsync service, use following command:

sudo apt-get install rsync

After the successful installation you can change following config file.
/etc/default/rsync
you can do this by typing

sudo nano /etc/default/rsync

and change following lines

*
RSYNC_ENABLE=false
*
RSYNC_CONFIG_FILE=

to

*
RSYNC_ENABLE=true
*
RSYNC_CONFIG_FILE=/etc/rsyncd.conf

now exit the nano editor with „Control +x“ and accept the changes with „Y“ (if you are using a mac)

Now you can create the rsyncd.conf file by following command:

sudo nano /etc/rsyncd.conf

copy this content into the file and change the parameters to your settings

max connections = 2
log file = /var/log/rsync.log
timeout = 300
 [SYN-HyperBackup]
comment = This folder will be shared for rsync backups
path = /mnt/USBDevice
read only = no
list = yes
uid = root
gid = root
auth users = syno
secrets file = /etc/rsyncd.secrets.syno

now we have to set the password for the user syno by typing

sudo nano /etc/rsyncd.secrets.syno

and add following: (please do not forget to change the password)

syno:password

exit the nano editor and change the user rights for the password file with following command:

sudo chmod 600 /etc/rsyncd.secrets.syno

and add the user to the system

sudo adduser syno --system --group --no-create-home --shell /bin/false

Restart the rsync service to load the new config

sudo systemctl restart rsync.service 

Now you can login to your Synology and Download the HyperBackup in the Package Center and add a new Data Backup task

Data Backup Task

Choose „rsync“ as option an clock on Next

Now you can choose „rsync-compatible server“ add the IP address, user and password. When you click on the Backup Module you should get the same name you have set in the /etc/rsyncd.conf file. Follow the the next steps like you want to have it.


Typical Error Messages:

  1. „Authentication failed. Please check your authentication credentials“

    Make sure that you have the right password and that you have created the same local user.
Authentication failed. Please check you authentication credentials
  1. Failed to establish the SSH connection. Please make sure that your credentials are correct, the SSH service of the destination server is normal, and the 2-step verfication is not enabled before trying again.

    May you have the wrong Port. Make sure that you use 873.
Failed to establish the SSH connection. Please make sure that your credentials are correct, the SSH service of the destination server is normal, and the 2-step verfication is not enabled before trying again.

Restoring files you can use follwing information
Restore Data from Synology Hyper Backup local




Thanks to following homepages helping me to create this manual:
Framp’s Linux Tips and Tricks
Synology-Forum.de


1 Reply

Restore Data from Synology Hyper Backup local

If you have a correct installed Synology, you have an Hard Disk attached to create your backup. Then your worse dream get real and your Synology is dead but you have to access your Data. While your local reseller is repairing your system you can get your Hyper Backup Harddrive and download the „Synology Hyper Backup Explorer“ from Synology’s Supportpage in the section „desktop utilities“

Here the Links to the Version 2.2.1 (1.5.2020)
Windows
Mac
Ubuntu & Fedora (64 bits, bz2)

Now you can start the application and choose „Browse Local Backup“ after attaching the Backup Harddrive to your machine (Attention if you use Windows or Mac you have to do some special magic to be able to read ext4 volumes. Here the instruction for Mac LINK)

Hyper Backup Explorer Version 2.2.1

Now you can brows your file structure and and with a click on the calendar icon on the left down corner you can select an other backup date.

When you make a right click on a folder you can restore the files to a new local destination. Yeahh your files are back and you are happy 🙂

When your Synology is repaired again you can easily restore all Datas and even the configuration of your applications (if you have enabled it) by using the „Backup Explorer“ in your device.


Durch die weitere Nutzung der Seite stimmst du der Verwendung von Cookies zu. Weitere Informationen

Die Cookie-Einstellungen auf dieser Website sind auf "Cookies zulassen" eingestellt, um das beste Surferlebnis zu ermöglichen. Wenn du diese Website ohne Änderung der Cookie-Einstellungen verwendest oder auf "Akzeptieren" klickst, erklärst du sich damit einverstanden.

SchlieĂźen