It should not be necessary to explain the importance of backups. Here is a short article on how to perform simple backups from Debian based servers to Strato HiDrive (rsync) storage.
First of all, we need to know which directories we want to backup and 2 new directories:
Let’s assume /home, /etc and /opt are the directories we want to safe.
This is the main script:
The last line is commented out for testing purposes. This should be changed in production.
You should use a dedicated user for backups. After creating the user, OpenSSH Keys needs to be placed in the Settings and activate the rsync protocol: