Skip to content

Instantly share code, notes, and snippets.

View mordini's full-sized avatar

Derp mordini

  • 12:09 (UTC -04:00)
View GitHub Profile
@mordini
mordini / docker-compose-backup.sh
Created October 27, 2021 00:46 — forked from pirate/docker-compose-backup.sh
Backup a docker-compose project, including all images, named and unnamed volumes, container filesystems, config, logs, and databases.
#!/usr/bin/env bash
### Bash Environment Setup
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
# set -o xtrace
set -o errexit
set -o errtrace
set -o nounset
set -o pipefail