mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-11-21 16:01:03 +01:00
activated backup
This commit is contained in:
parent
2bbf5bcf18
commit
8175353377
@ -26,9 +26,9 @@ do
|
||||
docker run --rm --volumes-from "$docker_container_name" -v "$native_backups_mount:$docker_backups_mount" "kevinveenbirkenbach/alpine-rsync" sh -c "
|
||||
test -d $source_path &&
|
||||
mkdir -p \"$destination_path\" &&
|
||||
rsync -a --delete --backup-dir=\"$backup_dir_path\" $source_path $destination_path ||
|
||||
rsync -ab --delete --backup-dir=\"$backup_dir_path\" $source_path $destination_path ||
|
||||
mkdir -p \"$(dirname "$destination_path")\" &&
|
||||
rsync -a --delete --backup-dir=\"$(dirname "$backup_dir_path")\" $source_path $(dirname "$destination_path")";
|
||||
rsync -ab --delete --backup-dir=\"$(dirname "$backup_dir_path")\" $source_path $(dirname "$destination_path")";
|
||||
done
|
||||
echo "start container: $docker_container_name" && docker start "$docker_container_name"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user