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