mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-10-31 23:33:11 +01:00
Adapted path
This commit is contained in:
parent
4e98fddcdb
commit
be2596af98
@ -1,7 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/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')"
|
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_prefix="$(test -z "$1" && echo "$HOME" || echo "$1")"
|
||||||
native_backups_mount="$native_backups_mount_prefix$docker_backups_mount"
|
native_backups_mount="$native_backups_mount_prefix$docker_backups_mount"
|
||||||
for docker_container_name in $(docker ps --format '{{.Names}}');
|
for docker_container_name in $(docker ps --format '{{.Names}}');
|
||||||
|
Loading…
Reference in New Issue
Block a user