Skip to content

Instantly share code, notes, and snippets.

View thanhdevapp's full-sized avatar

thanhdevapp thanhdevapp

  • Ha Noi, Viet Nam
  • 00:23 (UTC +07:00)
View GitHub Profile
@pirate
pirate / docker-compose-backup.sh
Last active October 25, 2024 01:51
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