Backup

CommunityEnterprise

Plugin can backup a three distinct Docker objects: Docker Container, Image and Persistent Volume files data.

The Docker Plugin will inform you about every container or image backup start and finish:

JobId 127: docker: Start Backup Docker Container: myubuntu (4d0a4fadb50d)
JobId 127: dkcommctx: Commit created: myubuntu/4d0a4fadb50d/127:backup
JobId 127: dkcommctx: Commit removed: myubuntu/4d0a4fadb50d/127:backup
JobId 127: docker: Backup of Docker Container: myubuntu (4d0a4fadb50d) OK.
...

The backup will create a single (.tar) file for any container, image or Docker volume which is saved. Inside Bacula, those are represented as follows.

  • /@docker/container/<name-label>/<id>.tar for container backup

  • /@docker/container/<name-label>/volume: <name> -> <mountpoint> during volume backup for this container

  • /@docker/image/<repository:tag>/<id>.tar for image backup

  • /@docker/volume/<name>.tar for volume backup

Multiple files will be created during a backup if multiple containers images or volumes are selected for backed up with one job. The distinct file names as shown above allow to locate the proper container, system image or volume archive for restore. You can list a special support file (symbolic link) generated at container backup directory tree which represent a volume name and mount point for this volume for easy data recovery.

To list available Docker containers, system images or defined volumes, a listing mode is available, described in chapter listing.

Read more:

See also

Next articles:

Go back to: Docker: Operations.