Docker support
A raspiBackup user has written a raspiBackup extension which ensures that all Docker containers are stopped before the backup and started again at the end.
The code is available on github.
To use the extension, execute the 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 then has to be made known to raspiBackup. To do this, the configuration file
/usr/local/etc/raspiBackup.confhas to be updated.If no extension is active yet, the following definition is sufficient:
DEFAULT_EXTENSIONS="docker"Otherwise,
dockerhas to 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.