This is just a wee little script for having automated backups of a single-node Rancher instance on docker. The script stops the container, backs its data up and simply uploads the backup file to S3 using s3cmd.
Made for and tested on Ubuntu 18.04.
You can then for example setup a simple cron job for it like this: (every day at 5a.m.)
0 5 * * * /usr/bin/bash /root/backup.sh