mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-11-21 16:01:03 +01:00
Adapted path
This commit is contained in:
parent
4e98fddcdb
commit
be2596af98
@ -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}}');
|
||||
|
Loading…
Reference in New Issue
Block a user