mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-11-24 17:21:03 +01:00
Implemented draft
This commit is contained in:
parent
4ab4fbeef3
commit
029115f63e
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
host_backup_folder_path="$HOME/Backup/docker/"
|
host_backup_folder_path="$HOME/Backup/docker/"
|
||||||
docker_backup_folder_path="/Backup/docker/"
|
docker_backup_folder_path="/Backup/docker/"
|
||||||
mkdir -p "$backup_folder_path"
|
mkdir -p "$host_backup_folder_path"
|
||||||
docker_container_ids="$(docker ps)";
|
docker_container_ids="$(docker ps -q)";
|
||||||
backup_folders=("/var/www/html/" "/var/lib/mysql/");
|
backup_folders=("/var/www/html/" "/var/lib/mysql/");
|
||||||
for docker_container_id in "${docker_container_ids[@]}";
|
for docker_container_id in "${docker_container_ids[@]}";
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user