Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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:

  1. 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
    
  2. The extension then has to be made known to raspiBackup. To do this, the configuration file /usr/local/etc/raspiBackup.conf has to be updated.

    If no extension is active yet, the following definition is sufficient:

    DEFAULT_EXTENSIONS="docker"
    

    Otherwise, docker has 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.