Source: own experience
- In the Synology “Package Center”, install “Web Station”, “Python 3.9”, “MariaDB 10”, “phpMyAdmin”, “Log Center”.
- Set a strong root password for MariaDB. Make sure the option “Enable TCP/IP connection” is enabled. Note the Port (3306).
- Make sure all files are in the right place.
- Using pypMyAdmin, create a new user “wswallet”. Set a strong password. Then, create empty databases “wswallet” and “wswallet_hist”.
- Using the “mariadb_***.sql” SQL dump files, import all the tables (with data), routines and views for “wswallet” and “wswallet_hist”.
- Open the “Log Center”. Create a new Rule with the following parameters:
- Log format: BSD format
- Transfer protocol: UDP
- Port: 514
- Open “Control Panel” > “Task Scheduler”.
- Create a new scheduled task with user-defined script with the following parameters:
- General
- Task: Export MariaDB wswallet
- User: root
- Enabled: Yes
- Schedule:
- Run on the following days: Daily
- Start time: 15:50
- Task Settings:
- Send run details by email: <email>
- Send run details only when the script terminates abnormally: Yes
- User-defined script:
bash /volume1/wswallet/export_mariadb.sh
- General
- Create a another new scheduled task with user-defined script with the following parameters:
- General
- Task: Copy files to wswallet
- User: root
- Enabled: Yes
- Schedule:
- Run on the following days: Daily
- Start time: 18:00
- Task Settings:
- Send run details by email: <email>
- Send run details only when the script terminates abnormally: Yes
- User-defined script:
bash /volume1/wswallet/copy.sh
- General
