Docker support
A raspiBackup user has written a raspiBackup extension which ensures that all Docker containers are stopped before the backup and finally started again.
The code is available on github
To use the extension, execute following steps:
-
Download the extension
cd /usr/local/bin sudo wget https://raw.githubusercontent.com/framps/raspiBackup/refs/heads/master/extensions_userprovided/raspiBackup_docker_pre.sh sudo wget https://raw.githubusercontent.com/framps/raspiBackup/refs/heads/master/extensions_userprovided/raspiBackup_docker_post.sh sudo chmod x raspiBackup_docker*.sh -
The extension must then be defined in raspiBackup. To do this, the configuration file
/usr/local/etc/raspiBackup.confmust be updated as follows.If no extension is active yet, the following definition is sufficient:
DEFAULT_EXTENSIONS="docker"Otherwise,
dockermust be added to the existing extensions.
Note:
There should be no commands in the DEFAULT_STOPSERVICES and DEFAULT_STARTSERVICES definitions,
that start or stop Docker.