Adapted path

This commit is contained in:
Kevin Veen-Birkenbach 2020-10-12 15:07:37 +02:00
parent 4e98fddcdb
commit be2596af98

View File

@ -1,7 +1,8 @@
#!/bin/bash
# @param $1 [optional] : The path in which the backups folder will be created.
# @param $1 [optional] : The path for the backups folder. DEFAULT $HOME/Backups/
backup_time="$(date '+%Y%m%d%H%M%S')"
docker_backups_mount="/Backups/"
docker_backups_mount="$(test -z "$1" && echo "/Backups/" || echo "/$(basename "$1")/")"
native_backups_mount_prefix="$(test -z "$1" && echo "$HOME" || echo "$1")"
native_backups_mount="$native_backups_mount_prefix$docker_backups_mount"
for docker_container_name in $(docker ps --format '{{.Names}}');