Skip to content

Commit

Permalink
Copy the whole .neon dir to minio
Browse files Browse the repository at this point in the history
  • Loading branch information
ctring committed Jul 24, 2023
1 parent 0d63481 commit 0ccbdff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 0 additions & 4 deletions docker-compose/docker-compose-multi-region.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
#
# ./prepare-multi-region.sh compose <path to neon data (.neon)>
#
# - Build the wrapped compute image:
#
# docker compose -f docker-compose-multi-region.yml build
#
# - Start the stack:
#
# docker compose -f docker-compose-multi-region.yml up -d
Expand Down
8 changes: 3 additions & 5 deletions docker-compose/prepare-multi-region.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ docker volume rm mc-config || true
alias mc="docker run --rm -it \
--network host \
--mount source=mc-config,target=/.mc \
--mount type=bind,source=$neon_data,target=/data \
--mount type=bind,source=$neon_data,target=/.neon \
$mc_image -C /.mc"

# We use the same safekeeper data directory for all new safekeepers so their IDs
Expand All @@ -131,10 +131,8 @@ mc alias set local http://localhost:9000 minioadmin minioadmin
mc mb local/neon

# Transfer data to minio
dest=local/neon/.neon
dest=local/neon
echo "Transfering data from \"$neon_data\" to \"$dest\""
mc cp -r /data/tenants $dest
mc cp -r /data/safekeepers $dest
mc cp /data/pageserver.toml $dest
mc cp -r /.neon $dest

exit 0

0 comments on commit 0ccbdff

Please sign in to comment.