Add timeout to prevent rsync from hanging

This commit is contained in:
Petros Angelatos 2015-06-17 23:56:29 +00:00 committed by Pablo Carranza Velez
parent 071ee3dcf4
commit 83931a0915

View File

@ -19,6 +19,6 @@ mv "$DOCKER_ROOT/graph/$dest_id/json.tmp" "$DOCKER_ROOT/graph/$dest_id/json"
btrfs subvolume delete "$BTRFS_ROOT/$dest_id"
btrfs subvolume snapshot "$BTRFS_ROOT/$src_id" "$BTRFS_ROOT/$dest_id"
rsync --archive --delete --read-batch=- "$BTRFS_ROOT/$dest_id"
rsync --timeout=30 --archive --delete --read-batch=- "$BTRFS_ROOT/$dest_id"
docker tag -f "$dest_id" "$dest"