mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-10-31 23:33:11 +01:00
Implemented sh
This commit is contained in:
parent
3692325288
commit
3d77545020
@ -13,7 +13,7 @@ do
|
||||
echo "trying to backup $rsync_source_path..."
|
||||
rsync_host_destination_path="$HOME$rsync_docker_destination_path";
|
||||
mkdir -p "$rsync_host_destination_path";
|
||||
docker run --rm --volumes-from "$docker_container_name" -v "$host_backup_folder_path:$docker_backup_folder_path" "kevinveenbirkenbach/alpine-rsync" rsync -a --delete "$rsync_source_path" "$rsync_docker_destination_path";
|
||||
docker run --rm --volumes-from "$docker_container_name" -v "$host_backup_folder_path:$docker_backup_folder_path" "kevinveenbirkenbach/alpine-rsync" sh -c "rsync -a --delete $rsync_source_path $rsync_docker_destination_path";
|
||||
done
|
||||
echo "start container: $docker_container_name" && docker start "$docker_container_name"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user