Schlagwort: backup

2 Replies

Synology Docker Zabbix Backup and Restore

Backup the Database:
The most important settings are all stored in the Database. The easiest and most secure way to save them is to export all the Data at a specific time and store them on the Synology Raid. So this is my solution:

  1. Go to „Control Panel“ -> „Task Schedueler“ and create a „User-defined script“
  1. Choose the name you want to have and set the User to „root“
  1. Choose the time you want to have the script running
  1. Change the code to your settings.
docker exec Zabbix-Server /usr/bin/mysqldump -u root --password=zabbix zabbix > /volume1/docker/Zabbix/backup.sql

tar -zcvf /volume1/docker/Zabbix/$(date +%Y%m%d).tar.gz /volume1/docker/Zabbix/backup.sql
rm /volume1/docker/Zabbix/backup.sql

Restore Database
If you want to restore your Database you have to enable SSH and connect with your Terminal. Then you can paste following command: (Attention you have to unpack the tar file if you use my Backup scirpt

cat /volume1/docker/Zabbix/backup.sql | docker exec -i Zabbix-Server /usr/bin/mysql -u zabbix --password=zabbix zabbix


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.
you can do this by typing

sudo nano /etc/default/rsync

and change following lines




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
comment = This folder will be shared for rsync backups
path = /mnt/USBDevice
read only = no
list = yes
uid = root
gid = root # für PI
# gid = wheel # für macOS
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)


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

and thanks to following helpers:
Thomas Böhm ( for the Mac Version

If you want to backup to an Apple Device with you have to create an LaunchDaemon


with following content

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

the default path for you rsync should be


If not change it in the plist file to the correct one

now you can start the Deamon with

launchctl load /Library/LaunchDaemons/org.samba.rsync.plist

Leave a reply

Zyxel Firewall Config Autobackup

If you have an Zyxel Firewall (USG, VPN, ATP, FLEX) and an Synology in your Network you create Autobackups using the Zyxel FTP and the Task Scheduler. This will make it easy for you to have automated Backups of your config files every day.

  1. You have to create an Sharepoint on your Synology where want to save your backups.
  2. Make sure that you have enabled the FTP service on your Firewall
Zyxel USG 20 FTP Service
  1. On your Synology go to Control panel / Task Scheduler / and create a User-defined script
Synolgy User defined scirpts
  1. Give the Task a name, a schedule and jump to „Task Settings“ there you can copy this text and change following things:
    – <username>
    – <password>
    – <IP-Address>
    – /volume1/ORDNER
wget -m ftp://<username>:<password>@<IP-Address>/conf -P /volume1/ORDNER

tar -zcvf /volume1/ORDNER/$(date +%Y%m%d).tar.gz /volume1/<IP-Address>/
  1. Apply it with the „OK“ Button, make a right click on your newly created task and click on „RUN“ -> The first Backup should been created

Thanks to following homepages helping me to create this manual:

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)
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.