Automatic site backup: files + databases using Rclone

Features

  • Creates local compressed backups of files and MySQL/MariaDB databases
  • Works with any type of web service (PHP, Node, ASP, Perl, etc...)
  • Option to limit the amount of backups to keep
  • Sync or upload to any remote or cloud service (Google Drive, OneDrive, SFTP, S3, Dropbox, etc...) thanks to rclone backend
  • Pure Bash script: no PHP, no Python, no NodeJS

Requirements

  • mysqldump: part of MySQL or MariaDB package, for database backups. Usually included in Linux shared hosts.

OctoPrint + Docker: USB devices hot plugging

One of the drawbacks of using OctoPrint in the default Docker Container is that the printer must be connected and operational for the container to start. This issue can affect the operation of useful plugins like PSU Control.

Fortunately there is a way to enable serial device hot plugging in a Docker container. It is practical if you are running few printers/containers.

The following instructions were written for 3D printers but the logic could be applied to any serial device and any type of container (HomeAssistant, Zigbee2MQTT, etc...).